作者Gwaewluin (神无月 孝臣)
看板MATLAB
标题Re: [问题] 非线性曲线拟合
时间Thu Jun 17 00:13:54 2004
※ 引述《meghost (守护灵)》之铭言:
: 我有x,y要Least Square Curve Fitting,想求出系数A,B,C,且皆要是实数...
: 请高手帮帮忙...提供一下程式码...3Q
: y = A*( x - B ).^C
: x=[0.6626 0.6640 0.6643 0.6534 0.6435 0.6333 0.6224 0.6113 0.5996
: 0.5876 0.5762 0.5652 0.5546 0.5428 0.5328 0.5203 0.5076 0.4938
: 0.4810 0.4675 0.4533 0.4391]
: y=[49.9175 49.9138 49.9138 47.9201 45.9254 43.9300 41.9355 39.9393 37.9401
: 35.9479 33.9521 31.9553 29.9604 27.9658 25.9703 23.9733 21.9805 19.9851
: 17.9881 15.9926 13.9980 12.0022]
参考这个
http://www.mathworks.com/support/tech-notes/1500/1508.shtml#section2bb
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.138.240.78