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!