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

5 visualizaciones (últimos 30 días)
Tago
Tago el 22 de Nov. de 2018
Respondida: Tago el 14 de En. de 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

Respuesta aceptada

Tago
Tago el 14 de En. de 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.

Más respuestas (0)

Categorías

Más información sobre Standalone Applications en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by