MATLAB standalone App Dynamic Class

I am trying to create a matlab standalone app.
Based on user input the app would create at runtime some enum files and store in some location. I am okay for this location to be fixed to some path for all users.
Later the app reference those enums to create the variables of that datatype. By using str2func.
But i am not able to make this working, the enums types are always coming as not undefined function.
Is it because the search path and the compiled functions it looks for are fixed when matlab standalone app is created ?

답변 (1개)

Steven Lord
Steven Lord 2026년 3월 13일 3:11

0 개 추천

From the documentation "MATLAB Runtime only works on MATLAB code that was encrypted when the deployable archive was built. Any function or process that dynamically generates new MATLAB code will not work against MATLAB Runtime."

카테고리

도움말 센터File Exchange에서 Standalone Applications에 대해 자세히 알아보기

태그

질문:

2026년 3월 13일 1:32

답변:

2026년 3월 13일 3:11

Community Treasure Hunt

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

Start Hunting!

Translated by