Watch this Author's files

Thank you. Unfortunately, I believe there are still problems with the function.

I emailed you an example (miroslav@balda.cz) with estimation of real data. It uses your function and compares to estimation with nlinfit.m

Will

t=0:.01:1; y=2*sin(2*pi*10*t+3)+5;

[f,a,phi,ave] = sinfapm(y,100)

Returns f=2.486 a=-0.1283 phi=1.5719 ave=5.0035

Contact us