1. 操作步骤
- 运行如下代码:
x=[1982 1992 2002]; y=[103.5 34.5 23.3]; cftool(x,y)
- 选择Exponential
- 在左侧就可以看到结果:
General model Exp1:
f(x) = aexp(bx)
Coefficients (with 95% confidence bounds):
a = 1.453e+82 (-7.288e+84, 7.317e+84)
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
右侧可以看到图形
2. 用cftool 拟合的图形如何保存成图像格式?
- cftool gui中文件->Print to Figure
- 此时就可以保存了。