RayTransferMatrixFromLensFile:

Path: Imaging/Optics

% Computes the ray transfer matrix from a lens file or table.

    The distance from the optical axis is the distance on entry to the 
    optical system, i.e. at the first element.

    Type RayTransferMatrixFromLensFile for a double Gauss lens demo. 

--------------------------------------------------------------------------
   Form:
   [mT, xT] = RayTransferMatrixFromLensFile( l, x, nA )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   l             (:)     Lens data structure
                         .r     (1,1) Radius of one surface
                         .t     (1,1) Thickness
                         .matl  (1,:) Material name
                         .index (1,1) Index of Refraction
                         .vNo   (1,1) Abbe V-number, the reciprocal of the
                                  relative dispersion of the material
                         .sa    (1,1) Semi aperture
   x             (2,:)   Rays [distance from optical axis;angle]
   nA            (1,1)   Ambient index of refraction

   -------
   Outputs
   -------
   mT            (2,2)   Transfer matrix
   xT            (2,:)   Rays [distance from optical axis;angle]

--------------------------------------------------------------------------
   References:
   http://en.wikipedia.org/wiki/Ray_transfer_matrix_analysis
--------------------------------------------------------------------------

Children:

Imaging: Optics/LensMakerFormula
Imaging: Optics/RayTransferMatrix
Imaging: Optics/ReadLensData

Back to the Imaging Module page