• Sep 6, 2025 Matlab Code For Saxton Phase Retrieval plexEstimate = magnitude .* exp(1i * initialPhase); ``` 2. Forward and Inverse Fourier Transforms The algorithm toggles between the spatial and Fourier domains using FFT and inverse FFT (IFFT). Matlab’s fft2 and ifft2 functions make this straightforward. ```matlab spatialDomain = ifft2 BY Melisa Schamberger