fourier_by_jump.m
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
Platform Compatibility
Windows macOS LinuxCategories
Tags
Communities
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |