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

5 vues (au cours des 30 derniers jours)
Tago
Tago le 22 Nov 2018
Réponse apportée : Tago le 14 Jan 2019
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

Réponse acceptée

Tago
Tago le 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.

Plus de réponses (0)

Catégories

En savoir plus sur Standalone Applications dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by