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

HARMFIT: Sinusoidal harmonic curve fitting

by

 

24 May 2014 (Updated )

Computes harmonics of a phase signal

| Watch this File

File Information
Description

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.

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