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 ?

Réponses (1)

Steven Lord
Steven Lord il y a environ 5 heures

0 votes

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."

Catégories

Tags

Question posée :

le 13 Mar 2026 à 1:32

Réponse apportée :

le 13 Mar 2026 à 3:11

Community Treasure Hunt

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

Start Hunting!

Translated by