MATLAB gives different results when compiled vs interactive
古いコメントを表示
Here at the Kepler SOC, we have observed numerous examples of situations in which our MATLAB applications produce different results depending on whether the application is run interactively or compiled via the MATLAB compiler. This can be the case when the MATLAB code in both instances is identical and when the two tests are run on the same workstation (64 bit Linux and R2010b, FYI). Can anyone explain why this should happen, and what we can do to minimize the circumstances under which it does happen? Thanks in advance.
採用された回答
その他の回答 (2 件)
Image Analyst
2012 年 1 月 14 日
0 投票
There could be a variety of reasons, for example data files not being where you thought they were because you didn't use the complete path and then creating default data values instead, or any number of other reasons. Even when run on the same workstation, the compiled app and the m-file do not run in the same folder, even though you might think they do (it's a long story...), so that might cause some differences.
Walter Roberson
2012 年 1 月 14 日
0 投票
The two situations are not defined to have the same floating point rounding behavior.
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!