Propagation of Fresnel diffraction pattern as a function of propagation distance

This program generates a movie of the Fresnel diffraction pattern of either a square or a circle as a function of propagation distance, z. The degree of transparency (0 <= T <= 1) and phase induced by travelling through the object are input parameters, along with wavelength, object size, pixel size, and detector dimensions in pixels.

The core of the program calculating the diffraction pattern at a given distance z is provided by the function 'prop_free_nf.m' from the CXS group, cSAXS beamline, Paul Scherrer Institute. See

https://www.psi.ch/en/sls/csaxs/software, and in this, the file path

cSAXS_matlab_base_package/+utils. Alternatively, the function can be downloaded from the matlab-code page.