如何用matlab计算不确定度,Matlab多项式拟合中参数的不确定度及相关系数 - 程序语言 - 小木虫 - 学术 科研 互动社区...

help polyfit

polyfit Fit polynomial to data.

P = polyfit(X,Y,N) finds the coefficients of a polynomial P(X) of

degree N that fits the data Y best in a least-squares sense. P is a

row vector of length N+1 containing the polynomial coefficients in

descending powers, P(1)*X^N + P(2)*X^(N-1) +...+ P(N)*X + P(N+1).

[P,S] = polyfit(X,Y,N) returns the polynomial coefficients P and a

structure S for use with POLYVAL to obtain error estimates for

predictions.  S contains fields for the triangular factor (R) from a QR

decomposition of the Vandermonde matrix of X, the degrees of freedom

(df), and the norm of the residuals (normr).  If the data Y are random,

an estimate of the covariance matrix of P is (Rinv*Rinv')*normr^2/df,

where Rinv is the inverse of R.

[P,S,MU] = polyfit(X,Y,N) finds the coefficients of a polynomial in

XHAT = (X-MU(1))/MU(2) where MU(1) = MEAN(X) and MU(2) = STD(X). This

centering and scaling transformation improves the numerical properties

of both the polynomial and the fitting algorithm.

Warning messages result if N is >= length(X), if X has repeated, or

nearly repeated, points, or if X might need centering and scaling,

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值