| 查看: 486 | 回复: 1 | |||
华夏千秋木虫 (小有名气)
|
[求助]
算法求助,关于“极小范数最小二乘法” 已有1人参与
|
| 遇到欠定线性方程组了,怎么用极小范数最小二乘法呢?各位师兄师姐学弟学妹们帮帮忙吧,能有代码最好了。 |
» 猜你喜欢
“人文社科而论,许多学术研究还没有达到民国时期的水平”
已经有6人回复
体制内长辈说体制内绝大部分一辈子在底层,如同你们一样大部分普通教师忙且收入低
已经有16人回复
版面费该交吗
已经有13人回复
面上可以超过30页吧?
已经有6人回复
网上报道青年教师午睡中猝死、熬夜猝死的越来越多,主要哪些原因引起的?
已经有4人回复
为什么中国大学工科教授们水了那么多所谓的顶会顶刊,但还是做不出宇树机器人?
已经有10人回复
什么是人一生最重要的?
已经有4人回复

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













回复此楼