作业帮 > 综合 > 作业

如何用matlab做指数拟合

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/10 04:55:08
如何用matlab做指数拟合
x=[1982 1992 2002]
y=[103.5 34.5 23.3]
欲求x=2012时的y值~在线等~MATLAB程序
x=[1982 1992 2002];
y=[103.5 34.5 23.3];
cftool(x,y)
在弹出的对话框选择fitting,弹出新的对话框选择 new fit,然后在第三个下拉菜单(Type of fit)中选择Exponential,然后点击Apply,即可;最后结果
General model Exp1:
f(x) = a*exp(b*x)
Coefficients (with 95% confidence bounds):
a = 1.453e+082 (-7.288e+084, 7.317e+084)
b = -0.09312 (-0.3464, 0.1602)
Goodness of fit:
SSE: 90.2
R-square: 0.9761
Adjusted R-square: 0.9522
RMSE: 9.497
注:括号中的是次要参数;
最终拟合结果:
f(x) = 1.453e+082*exp(-0.09312*x)
将2012带入即得
f(2012)=6.2225