MATLAB gives different results when compiled vs interactive
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (2)
Image Analyst
el 14 de En. de 2012
0 votos
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
el 14 de En. de 2012
0 votos
The two situations are not defined to have the same floating point rounding behavior.
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!