| 查看: 481 | 回复: 1 | |||
华夏千秋木虫 (小有名气)
|
[求助]
算法求助,关于“极小范数最小二乘法” 已有1人参与
|
| 遇到欠定线性方程组了,怎么用极小范数最小二乘法呢?各位师兄师姐学弟学妹们帮帮忙吧,能有代码最好了。 |
» 猜你喜欢
计算机、0854电子信息(085401-058412)调剂
已经有4人回复
基金申报
已经有3人回复
国自然申请面上模板最新2026版出了吗?
已经有9人回复
溴的反应液脱色
已经有6人回复
纳米粒子粒径的测量
已经有7人回复
常年博士招收(双一流,工科)
已经有4人回复
推荐一本书
已经有10人回复
参与限项
已经有5人回复
有没有人能给点建议
已经有5人回复
假如你的研究生提出不合理要求
已经有12人回复

mathstudy
金虫 (正式写手)
- 数学EPI: 2
- 应助: 161 (高中生)
- 金币: 4320.1
- 散金: 38
- 红花: 16
- 帖子: 446
- 在线: 141.1小时
- 虫号: 2515489
- 注册: 2013-06-20
- 性别: GG
- 专业: 计算数学与科学工程计算
【答案】应助回帖
★ ★ ★ ★ ★ ★ ★ ★ ★ ★
感谢参与,应助指数 +1
华夏千秋: 金币+5, ★有帮助 2014-03-31 22:16:47
华夏千秋: 金币+5, ★★★★★最佳答案 2014-07-13 17:51:10
感谢参与,应助指数 +1
华夏千秋: 金币+5, ★有帮助 2014-03-31 22:16:47
华夏千秋: 金币+5, ★★★★★最佳答案 2014-07-13 17:51:10
|
在matlab 中可以直接调用 ”\ “矩阵左除运算 可以算最小二乘广义解 下面是关于 \ help 的内容 \ Backslash or left matrix divide. A\B is the matrix division of A into B, which is roughly the same as INV(A)*B , except it is computed in a different way. If A is an N-by-N matrix and B is a column vector with N components, or a matrix with several such columns, then X = A\B is the solution to the equation A*X = B. A warning message is printed if A is badly scaled or nearly singular. A\EYE(SIZE(A)) produces the inverse of A. If A is an M-by-N matrix with M < or > N and B is a column vector with M components, or a matrix with several such columns, then X = A\B is the solution in the least squares sense to the under- or overdetermined system of equations A*X = B. The effective rank, K, of A is determined from the QR decomposition with pivoting. A solution X is computed which has at most K nonzero components per column. If K < N this will usually not be the same solution as PINV(A)*B. A\EYE(SIZE(A)) produces a generalized inverse of A. |
2楼2014-03-08 15:55:56












回复此楼