Has the inv() function changed?
2 ビュー (過去 30 日間)
古いコメントを表示
I am wondering whether the inverse matrix function, inv(), has changed. I have two versions of MATLAB, 2011b (win64, 7.13.0.564) and 2016a (win64, 9.0.0.341360). I found out that, for some matrix, the results of inverse matrix are different in the two versions of MATLAB. Consider the attached matrix I generated.
Download the A2011.mat file and load in the MATLAB. Calculate B=inv(A'*A). Then, the results of inverse matrix are different! Thus, I am wondering whether the inverse matrix function has changed between 2011b and 2016a. Thank you.
2 件のコメント
Stephen23
2017 年 9 月 19 日
@Won-Ho Song: please edit your question and upload the .mat file here by clicking the paperclip button. It is not appreciated having links to random third-party websites.
Rik
2017 年 9 月 19 日
The release notes are not always comprehensive, but it is the first place to look: your search term.
Sidenote: I seem to recall a function like inv is very tricky to implement in a way that is both fast and numerically stable. For some functions it is indeed the case that a re-worked implementation sacrifices some numerical stability for a large increase in speed (or supported dimensions). I don't know if this is the case for inv. At any rate, your results should always be reversible within machine precision.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!