Skip to content
Discussion options

You must be logged in to vote

Thanks for your use of MCmatlab!

Yes, MCmatlab should be perfect for your simulations and example 23 would be the best starting point. Assuming you have no specular reflection (model.MC.matchedInterfaces = true), the expression you can use to get the diffuse reflectance is

model.G.dx*model.G.dy*sum(model.MC.normalizedIrradiance_zneg,'all')

model.MC.normalizedIrradiance_zneg is already normalized to the number of launched photons so you don't need to worry about that. See also example 20, where specular reflection is subtracted.

If you're interested in other results such as radial reflectance or transmittance you can take inspiration from example 24.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@leoshmu
Comment options

Answer selected by leoshmu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants