原语句:
% Fit a sine wave to the data and temporarily remove it to yield processed data
options=foptions;
options(1)=0;
options(2)=1e-8;
options(3)=1e-8;
options(14)=2000;
gradfun=zeros(0);
P=fmins('sinefit',[2.0 0 125/6.],options,gradfun,sampledData,symbolRate);
新版只有fminsearch函数,提示第三个参数需要是结构体。求助一下应该怎么改呢?谢谢。
加一句似乎不行
options = optimset(options, gradfun, sampledData, symbolRate);
P=fminsearch('sinefit',[2.0 0 125/6.],options)
--
修改:totowo FROM 218.82.142.*
FROM 218.82.142.*