simulPort.m

Matlab/Octave script for calculating port reflectivity and transmittivity in an integrating sphere. Note that this code has been simplified for readability and can therefore be readily translated to other programming languages but, as a result, is not optimized for speed. See also http://nano-optics.github.io/apps/sphere for tabulated values.