You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This is the core formula of discrete Fourier transform: it simply computes the amplitude and phase shift of fundamental or harmonics of a phase signal.
Example:
t = linspace(0,2*pi);
x = 2*cos(t + pi/2) - cos(3*t) + rand(size(t));
harmfit(t,x,1:4)
returns estimations of amplitudes/phases for the first four harmonics.
Cite As
François Beauducel (2026). HARMFIT: Sinusoidal harmonic curve fitting (https://uk.mathworks.com/matlabcentral/fileexchange/46736-harmfit-sinusoidal-harmonic-curve-fitting), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1.0.0 (2.67 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
