作业帮 > 英语 > 作业

为什么我用MATLAB的cftool做指数曲线拟合会提示:Power functions cannot be fit t

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/05/05 07:59:04
为什么我用MATLAB的cftool做指数曲线拟合会提示:Power functions cannot be fit to non-positive xdata.
A =[ 0 1 2 3 4 5 6 7 8]
B =[ 0 1 8 27 64 125 216 343 512] (B=A.^3)
选的Power的a*x^b形式,Center and scale X data没有勾选,Fit options没有修改过
提示你xdata中不能有0,把0去掉即可.
General model Power1:
f(x) = a*x^b
Coefficients (with 95% confidence bounds):
a = 1 (1,1)
b = 3 (3,3)
Goodness of fit:
SSE:1.293e-025
R-square:1
Adjusted R-square:1
RMSE:1.468e-013