File Exchange

image thumbnail

HARMFIT: Sinusoidal harmonic curve fitting

version 1.0 (3.04 KB) by

Computes harmonics of a phase signal



View License

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.
   t = linspace(0,2*pi);
   x = 2*cos(t + pi/2) - cos(3*t) + rand(size(t));

returns estimations of amplitudes/phases for the first four harmonics.

Comments and Ratings (0)

MATLAB Release
MATLAB 8.3 (R2014a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video