非线性最小二乘拟合: 解法一:用命令lsqcurvefit function f = curvefun(x, tdata) f = x() + x()*exp() * tdata); %其中x() = a; x() = b; x() = c; %数据输入 tdata = ::; cdata = 1e- * [4.54, 4.99, 5.35, 5.65, 5.90, 6.10, 6.26, 6.39, 6.50, 6.59]; %设定预测值 x0 = [0.2 0.05 0.05]; %非线性拟