Is there any way to determine if an app is being ran as a compiled executable via MATLAB Runtime or as a mlapp file via MATLAB?
5 次查看(过去 30 天)
显示 更早的评论
I have an app that unfortunately requires some functionality to be reduced when running as a compiled executable due to MATLAB Compiler not liking str2sym. I would like to know prior to that portion of the code running whether the user is running it from the compiled version or as a .mlapp file so that I can get ahead of the errors it would cause. Is there any way to determine what form the program is in when ran? Thanks!
0 个评论
采纳的回答
Githin George
2024-8-27
移动:Voss
2024-8-27
Hi Austin,
You can try using the "isDeployed" function in MATLAB to determine whether the MATLAB code is running from a compiled executable or from a MATLAB session.
Please refer to the documentation for more information:
2 个评论
Steven Lord
2024-8-27
Technical correction: there is no isDeployed function in MATLAB or any MathWorks products as far as I'm aware. The function has two lower-case d's: isdeployed.
which -all isDeployed
which -all isdeployed
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!