Same code but different results
4 ビュー (過去 30 日間)
古いコメントを表示
Alessandro Gottardi
2020 年 12 月 24 日
回答済み: Walter Roberson
2020 年 12 月 24 日
Using the same code, I get different results than those obtained on a different pc and version of Matlab (the versions involved are R2020b and R2012b). Does anyone have any idea why this is happening?
2 件のコメント
採用された回答
Walter Roberson
2020 年 12 月 24 日
It looks to me as if you are using mrdivide ( / ) a couple of times in your code. The / operator has been improved to be able to select more efficient algorithms in some cases, and the underlying high performance math libraries have been upgraded at least twice since 2012 (my memory is saying three times for Windows, but that would have to be confirmed.)
A few years ago, the upgrades to the underlying math libraries started causing error messages in code that had run before. What had happened was that more accurate algorithms were used, but the more accurate algorithms were also more likely to detect that the problem was nearly singular — that really the old libraries should have warned about singularity too but had been a little sloppy and had permitted calculations that were not numerically meaningful.
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Signal Integrity Kits for Industry Standards についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!