MATLAB 板


LINE

1F:推 zhewei:\ 08/08 21:28
2F:→ zhewei:\是matlab幫你弄好的,不用\ 也可以參考我po的網址來求解 08/08 21:50
3F:推 Append:doc mldivide裡面有寫吧@___@"" 08/08 23:06
4F:推 YoursEver:預設是用QR分解來解,若考慮到condition number之類的問 08/09 00:36
5F:→ YoursEver:題,可以查查Householder/Givens該怎麼寫. (Matlab) 08/09 00:37
6F:→ waveken:如果他要求LSM 怎可能是用反矩陣就求解出來 08/09 23:24
7F:→ waveken:除非他問錯問題 ! 或是他寫的方式讓大家誤解! 08/09 23:24
雖然確實不能算是反矩陣...不過就是這樣喔。=P 首先是解法。"/" (也就是mldivide) mldivide at MATLAB Documentation http://www.mathworks.com/access/helpdesk/help/techdoc/ref/mldivide.html Least Squares Solutions If the equation Ax = b does not have a solution (and A is not a square matrix), x = A\b returns a least squares solution — in other words, a solution that minimizes the length of the vector Ax - b, which is equal to norm(A*x - b). See Example 3 for an example of this. . . . If A is not square, then Householder reflections are used to compute an orthogonal-triangular factorization. A*P = Q*R where P is a permutation, Q is orthogonal and R is upper triangular (see qr). The least squares solution X is computed with X = P*(R\(Q'*B)) Least Squares Solutions at Wolfram Mathworld http://ppt.cc/sJAV A general way to find a least squares solution to an overdetermined system is to use a singular value decomposition to form a matrix that is known as the pseudo-inverse of a matrix. In Mathematica this is computed with PseudoInverse. This technique works even if the input matrix is rank deficient. The basis of the technique is given below. 好這樣應該夠了。 有興趣的話, Moore-Penrose Matrix Inverse at Wolfram Mathworld http://ppt.cc/PhR~ 順便說,MATLAB Documentation建議, 解這個問題的時候盡量不要生出inverse(喔當然這裡是pseudo-inverse), 而是直接用"\"。 A frequent misuse of inv arises when solving the system of linear equations. One way to solve this is with x = inv(A)*b. A better way, from both an execution time and numerical accuracy standpoint, is to use the matrix division operator x = A\b. ---- 另外,如果是我們真的誤解了的話,請放心的說出來。... 以上。=) --



※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 219.71.211.169
8F:推 waveken:我是猜的問題沒有那麼單純 08/10 15:07
9F:→ waveken:應該是constrained linear least-squares problems 08/10 15:08
10F:→ waveken:function lsqlin 之類的 08/10 15:08
11F:→ waveken:某些值需要疊代 不然他直接說解反矩陣就好啦 ! 08/10 15:09
12F:→ waveken:所以我才說 可能他講錯 或講不夠詳細 ! 08/10 15:11
13F:→ waveken:不然就是他們老師故做玄虛拉 ! 08/10 15:13
14F:→ Append:...為什麼是他們老師? 我猜不出來這跟他們老師的關係... 08/10 15:15
15F:→ Append:另外 一個星期以來我第一次看到你推文裡面有指引... 08/10 15:17
16F:→ waveken:AX=B A,B是常數矩陣;僅X未知 那應該是我想太複雜了! 08/10 15:19
17F:→ waveken:Append 問太簡單的 我還是沒回答吧 ! 08/10 15:19
18F:→ waveken:有的我做過or我會then我就指引拉! 08/10 15:20







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:WOW站內搜尋

TOP