Git Product home page Git Product logo

Comments (4)

hayakawa16 avatar hayakawa16 commented on June 1, 2024

Dear Chris,

Thank you for finding another bug! In VtsSpectroscopy.m the call to the Vts.dll IntralipidScatterer was erroneously using VolumeFraction instead of vol_frac. VolumeFraction is the property within the class, however in the matlab script we have simplified the names of those scatterer properties to ease use. So vol_frac is the one that should be used in the matlab script and I have updated VtsSpectroscopy.m to use vol_frac so when the next release of our matlab inter code is provided, it will be fixed.

While I was editing VtsSpectroscopy.m I expanded the Mie scatterer properties to include vol_frac. I also added two examples in vts_solver_demo.m that uses an Intralipid scatterer and an example that uses a Mie scatterer specification.

Just a comment about your script. For scatterers, the volume fraction is expected to be a real number between 0 and 1, not complex. Are you by chance wanting to specify a complex refractive index? If so using the Mie scatterer properties might work for you.

Thanks again for helping us improve our code.
Best,
Carole

from vts.

ccampb19 avatar ccampb19 commented on June 1, 2024

Hi again Carole,

Thanks for being so responsive! I frequently use 'i' as an increment, which may not be the best practice here, but Matlab doesn't seem to notice. For complex numbers I think Matlab prefers 1i*(theComplexNumber).

from vts.

hayakawa16 avatar hayakawa16 commented on June 1, 2024

Thanks for the clarification about 'i'. I'll post here when the new Matlab download is available. I'm glad you have a workaround in the meantime.

from vts.

hayakawa16 avatar hayakawa16 commented on June 1, 2024

The latest Matlab Interop download, version 4.6, has this bug fix.

from vts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.