How to check if mlapp running from source or by runtime?

6 views (last 30 days)
Hello,
i have a mlapp (2018b) and i need to know within the mlapp if it was started from source
or as compiled code (on Windows and Linux). How can this be done?
My first idea was to use something like this here but it is not directly
usable on linux, only on Windows.
That would be to much coding for both systems and maybe other OS in the future.
Is there any simple solution, e.g.
  • checking any flag ?
  • checking if any command exists ?
  • ???
I don't know where to look at Matlab help, my search keywords leed to help pages that didn't help :-)
Thx

Accepted Answer

Tago
Tago on 14 Jan 2019
found meantime a solution, use the command
isdeployed
From Help:
If you include this function in an application and compile the application with MATLAB Compiler™, the function will return true when the application is run in deployed mode. If you run the application containing this function in a MATLAB session, the function will return false.

More Answers (0)

Categories

Find more on Standalone Applications in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!