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

조회 수: 4 (최근 30일)
Tago
Tago 2018년 11월 22일
답변: Tago 2019년 1월 14일
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

채택된 답변

Tago
Tago 2019년 1월 14일
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.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Standalone Applications에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by