Here is an outline of steps to perform Monte Carlo simulation of photon transport in MATLAB:
Here's an example MATLAB code that implements the above steps for a homogeneous tissue model with an isotropic point source:
1673 chars37 lines
Note that the functions calculateProbs, sampleFates, and movePhotons need to be defined based on the specific model and simulation parameters.
Reference:
gistlibby LogSnag