Fit harmonics code brings back an error

조회 수: 1 (최근 30일)
Victoria Woods
Victoria Woods 2018년 1월 10일
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.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by