RandomPhotonWalk(Nsteps,mua)
Version 1.1.0.0 (2.41 KB) by
Justin Spinner
Monte Carlo Simulation of photon propagating in 3-D space
A 3-D Monte Carlo Simulation of a photon propagating in scattering and absorbing media. Given an input of the number of steps (iterations) for the photon to take and the absorption coefficient of media, this function calculates a random walk and returns coordinates of final position and total final distance from origin.
Cite As
Justin Spinner (2024). RandomPhotonWalk(Nsteps,mua) (https://www.mathworks.com/matlabcentral/fileexchange/51216-randomphotonwalk-nsteps-mua), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2013a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.