主题:polyfit的一个问题
一组测量的数据x=[1020 657.61 286.4 154.35 89.529 67.027 48.821 39.406 15.286] 和y=[5 10 15 20 25 30 35 40 100] 想用多项式方程式,用f= polyfit(x,y,7) 出现下面警告
Warning: Polynomial is badly conditioned. Remove repeated data points
or try centering and scaling as described in HELP POLYFIT.
(Type "warning off MATLAB:polyfit:RepeatedPointsOrRescale" to suppress this warning.)
> In D:\MATLAB6p5\toolbox\matlab\polyfun\polyfit.m at line 75
算出来的coefficient不对,但是如果把指数降到3次方,也就是只取4个点的值,就没问题了。
是不是因为测出来的值误差大于这个多项式能承受的啊,所以得不出答案来,如果是这样,我该用哪个命令来求解呢?
Warning: Polynomial is badly conditioned. Remove repeated data points
or try centering and scaling as described in HELP POLYFIT.
(Type "warning off MATLAB:polyfit:RepeatedPointsOrRescale" to suppress this warning.)
> In D:\MATLAB6p5\toolbox\matlab\polyfun\polyfit.m at line 75
算出来的coefficient不对,但是如果把指数降到3次方,也就是只取4个点的值,就没问题了。
是不是因为测出来的值误差大于这个多项式能承受的啊,所以得不出答案来,如果是这样,我该用哪个命令来求解呢?