看板 MATLAB 關於我們 聯絡資訊
請問各位大大 我利用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