| 查看: 3518 | 回复: 3 | ||
| 当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖 | ||
ylberyl金虫 (正式写手)
|
[求助]
Matlab多项式拟合中参数的不确定度及相关系数
|
|
|
Matlab中,通过polyfit(x,y,n)就可以拟合n阶多项式。 那么R2以及拟合得到的参数的不确定度如何计算? 因为这个通过origin拟合时,在报告里就可以自动生成。我主要是excel处理数据,通过连接可以方便的把数据导入matlab。 |
» 猜你喜欢
依托企业入选了国家启明计划青年人才。有无高校可以引进的。
已经有11人回复
依托企业入选了国家启明计划青年人才。有无高校可以引进的。
已经有10人回复
同年申请2项不同项目,第1个项目里不写第2个项目的信息,可以吗
已经有9人回复
有时候真觉得大城市人没有县城人甚至个体户幸福
已经有11人回复
表哥与省会女结婚,父母去帮带孩子被省会女气回家生重病了
已经有7人回复
天津大学招2026.09的博士生,欢迎大家推荐交流(博导是本人)
已经有9人回复
有院领导为了换新车,用横向课题经费买了俩车
已经有10人回复
AI 太可怕了,写基金时,提出想法,直接生成的文字比自己想得深远,还有科学性
已经有6人回复
» 本主题相关价值贴推荐,对您同样有帮助:
matlab微分方程组参数拟合,以周为单位求解,汇总后以年为单位进行数值比较
已经有4人回复
matlab拟合方程参数时初值的选择
已经有15人回复
从excel读取数据多项式拟合出错
已经有3人回复
在matlab中拟合曲面的表达式
已经有29人回复
matlab 求指点 动力学方程拟合过程中导数的获取
已经有10人回复
matlab拟合拟均相动力学参数
已经有6人回复
需要用matlab拟合数据的外行人急需帮助
已经有10人回复
关于XRD粉末精修的键参数不确定度的数值范围
已经有10人回复
matlab非线性参数拟合问题
已经有7人回复
【致H兄】数列题的万能多项式拟合求法
已经有28人回复
【求助】使用MATLAB拟合出按照公式的系数
已经有19人回复
【原创】多项式和非多项式曲线拟合的MATLAB实现视频教程
已经有10人回复
【求助】如何使得matlab拟合的曲线强制经过一个点
已经有8人回复
【求助】使用MATLAB怎么实现拟合力场参数的程序?【已解决】
已经有15人回复
origin中做线性拟合时,如何才能提高相关系数???
已经有10人回复
Honbein
木虫 (正式写手)
- 应助: 3 (幼儿园)
- 金币: 3785.2
- 散金: 5
- 红花: 1
- 帖子: 531
- 在线: 86.4小时
- 虫号: 1839556
- 注册: 2012-05-29
- 性别: GG
- 专业: 粒子物理与核物理实验方法
3楼2012-06-16 10:29:06
【答案】应助回帖
★
感谢参与,应助指数 +1
jjdg: 金币+1, 感谢参与 2012-06-16 21:52:29
感谢参与,应助指数 +1
jjdg: 金币+1, 感谢参与 2012-06-16 21:52:29
|
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. |
2楼2012-06-14 07:47:01
sujie1988
木虫 (正式写手)
- 应助: 0 (幼儿园)
- 金币: 2278.6
- 散金: 15
- 红花: 2
- 沙发: 1
- 帖子: 473
- 在线: 130.9小时
- 虫号: 1105086
- 注册: 2010-09-21
- 性别: GG
- 专业: 光学

4楼2012-06-18 18:35:40













回复此楼