非线性最小二乘拟合:解法一:用命令lsqcurvefit1 function f = curvefun(x, tdata)2 f = x(1) + x(2)*exp(0.02 * x(3) * tdata);3 %其中x(1) = a; x(2) = b; x(3) = c; 1 %数据输入 2 tdata = 100:100:1000; 3 cdata = 1e-03 * [4.54, 4.99, 5.35, 5.65, 5.90, 6.10, 6.26, 6.39, 6.50, 6.59]; 4 %设定预测值 5 x0 = [0.2 0.05 0.05]; 6 %非线性拟合函数 7 x = Read More
posted @ 2013-08-16 13:14 瓶哥 Views(590) Comments(0) Diggs(0) Edit