给定数据点,polyfit度数产生唯一的插值多项式?
具体来说,这是一个代码示例:
x=[1:10]
y= x.^3;
pp = polyfit(x,y,9)
发出以下警告的地方:
Warning: Polynomial is badly conditioned. Add points with
distinct X values, reduce the degree of the polynomial, or try
centering and scaling as described in HELP POLYFIT.
> In polyfit (line 79)
pp确实是,应该是这样,但为什么这是病态的?插值仅对某些基是病态的(例如,单项式),但不考虑其他人?