version (3.1 KB) by Ohad Gal
up/down sample an input matrix using the fourier domain.


Updated 22 Nov 2004

View License

Up/down sample an image/matrix/vector (can be of complex numbers) using the frequency domain.
The matrix/vector should be continuous of a high degree (has continuous derivatives) in order to obtain a reasonable up/down sampling

Speed-up can be achieved if the user up-samples to a near power of 2. no optimization is done inside this code for efficient fft usage.

Documentation is found inside the *.m file.

type "updownsample" for the example

Cite As

Ohad Gal (2022). updownsample (https://www.mathworks.com/matlabcentral/fileexchange/4658-updownsample), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: fft_upsample

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!