No BSD License  

Highlights from
basic paraxial optics toolkit

image thumbnail
from basic paraxial optics toolkit by Andri M. Gretarsson
A set of paraxial optics functions for beam propagation and modal decomposition. Numerous examples.

y=fact(x);
% Vector form of factorial.
% For some reason the function "factorial" can't act on vectors.
% 6/24/03

function y=fact(x);

y=[];
for s=1:length(x)
    y(s)=factorial(x(s));
end

Contact us at files@mathworks.com