作者suandmilk (每天都要有精神~~go go)
看板MATLAB
标题[问题]有关cfun
时间Mon May 14 19:12:28 2012
请问各位大大
我利用fit做curve fitting
bb=(5000,30)
我要对bb做fit
所以我写了
bbfit=zeros(5000,30);
for i=1:5000
a=[1:30];
b=bb(i,:);
[cfun,gov,output]=fit(a',b','poly5');
bbfit(i,:)=cfun;
end
结果出来的error code 是
the following error occurred converting from cfit to double
error using=>double
conversion to double from cfit is not possible
error in=>bbfit(i,:)=cfun
我该如何把fit好的线一条条存出来呢??
请各位大大教我~~~
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 120.126.74.129