View License

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

» Watch video

Highlights from
HARMFIT: Sinusoidal harmonic curve fitting

Be the first to rate this file! 7 Downloads (last 30 days) File Size: 3.04 KB File ID: #46736 Version: 1.0
image thumbnail

HARMFIT: Sinusoidal harmonic curve fitting



24 May 2014 (Updated )

Computes harmonics of a phase signal

| Watch this File

File Information

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.

MATLAB release MATLAB 8.3 (R2014a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us