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.

abcd=lens(f)
%---------------------------------------------------------------
% Returns the ABCD matrix for propagation through a thin lens.
%
% SYNTAX: abcd=lens(f);
%
%
% f = lens focal length
%
% abcd = |  1    0 |
%        |-1/f   1 |
%
%---------------------------------------------------------------
% SYNTAX: abcd=lens(f);
%---------------------------------------------------------------

function abcd=lens(f)

abcd=[
    1       0
    -1/f    1
];

Contact us at files@mathworks.com