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 ?

Answers (1)

Steven Lord
Steven Lord ongeveer 4 uur ago
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."

Categories

Tags

Asked:

on 13 Mar 2026 at 1:32

Answered:

on 13 Mar 2026 at 3:11

Community Treasure Hunt

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

Start Hunting!