fourier_by_jump.m

Version 1.0.0.0 (976 Bytes) by Rasmus Post
FOURIER_BY_JUMP is a fourier analysis, especially made for sampled data, but it is not a DFT.
4.2K Downloads
Updated 27 Jun 2000

No License

FOURIER_BY_JUMP is a fourier analysis, especially made for sampled data, but it is not a DFT.

The function assumes equidistant sampling and only one full period of the fundamental. If the function is used on N fundamentals, the harmonics are shifted to N*f. The function does not work on non-integer numbers of fundamentals.

The reason for writing this function is that Matlab's own internal fft-function occational gives results that are un-satisfying especially when regarding sampled PWM-voltages. The function is a true fourier analysis, not a FFT or a DFT analysis. The function is optimized for speed, but it is possible that it may be made faster by eliminating the remaining for-loops.

The function is tested on Matlab v 5.3.

Cite As

Rasmus Post (2024). fourier_by_jump.m (https://www.mathworks.com/matlabcentral/fileexchange/68-fourier_by_jump-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux
Communities

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0