[問題]請問我fit方程式哪裡出錯已回收
我想fit出y=a*V^b*fz^c
程式碼如下
V=[14.08;24.10;14.08;24.10;18.37;18.37;18.37;18.37;18.37;13.12;27;
27;18.37;18.37]
fz=[0.057;0.057;0.098;0.098;0.075;0.075;0.075;0.075;0.075;0.075;0.075;
0.053;0.107]
y=[0.4;0.35;1.12;0.79;0.53;0.49;0.47;0.48;0.58;0.62;0.51;0.37;0.64]
ffun=fittype('y=aV^b*fz^c')
cfun=fit(V,fz,y,ffun)
結果出現??? Error using ==> fittype.fittype>deducecoeff at 513
The independent variable x does not appear in the equation expression.
Use x in the expression or indicate another variable as the independent variable.
我有用過等號兩邊取LOG再用反矩陣求解求出來的a.b.c係數,在驗算時誤差很大
polyfit好像只能對X N維作FIT
lsqcurvefit版上沒有實例可以參考
不知道有沒有可以畫出三維曲線圖>FIT出方程式>最佳化
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.134.76.123
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):