Assorted MATLAB utility scripts.
A set of unrelated MATLAB utility scripts for reuse of common tasks, common functions, and optical simulation.
Some notables:
./Optics/
contains several free-space scalar beam propagation simulation functions and test scripts.plotStandard2D
is intended to provide all common and uncommon options desired for plotting 2D lines, including a 2nd y-axis and 2nd x-axis. Read it's documentation to find out more.- Other
plot*
functions gather common options for various 2D plotting tasks. figureSize
creates a new figure with a specified handle and size.fftconv
andfftxcorr
provide acceleratedconv
olution andxcorr
elation calculation by transforming to frequency space and multiplying.
Note: not all functions have been tested with recent MATLAB versions.
Some functions use the smoothn
function. This can be replaced with the built-in smooth
if desired.