It provides routines useful in an optics laboratory, including beam image analysis and processing, fitting, and ABCD propagation, and Fourier transform propagation.
Andri M. Gretarsson (2020). Selected Code for Optics (https://www.mathworks.com/matlabcentral/fileexchange/74284-selected-code-for-optics), MATLAB Central File Exchange. Retrieved .
This was very helpful. If I wanted to incorporate the LG modes into the FFT script, how would you suggest going about it? Could I just replace the U(x,y) field with the complex LG equation?