Fit harmonics code brings back an error

1 vue (au cours des 30 derniers jours)
Victoria Woods
Victoria Woods le 10 Jan 2018
My code is :
nharm = 1 ;
L = 365.25;
cutoff = 0;
[amp,phase,frac,offset,yy]=fit_harmonics(SSTsummer,t,nharm,L,cutoff);
pred_summer= amp*cos(((2*pi*t)/L)+phase)+offset;
If I run this it brings back and error with this line:
[amp,phase,frac,offset,yy]=fit_harmonics(SSTsummer,t,nharm,L,cutoff);
but doesn't say what the error is and can't find the error.

Réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by