为什么我用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*
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 06:33:28
为什么我用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*
为什么我用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没有修改过
为什么我用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*
提示你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