The following Matlab project contains the source code and Matlab examples used for sinesum estimates a signal as a sum of pure sine waves of known frequency .
function [output m p]= sinesum(signal, freq, Fs)
SINESUM Estimates a signal as a sum of pure sine waves of known frequency
'signal' - Input signal you wish to estimate
'freq' - Vector of known frequencies with significant contributions
If no vector is specified, vector is assumed to be a
fundamental (primary freq of signal) plus harmonics (number of