Is it possible to use "openvar" in a compiled app?
3 views (last 30 days)
Show older comments
Eric Delgado
on 16 Jul 2021
Commented: Walter Roberson
on 16 Jul 2021
In an app designed in AppDesigner, I can make something like this.
app.MyAppProperty = struct('FieldA', 'A', 'FieldB', randi(5, 10));
assignin('base', 'MyAppProperty', app.MyAppProperty)
openvar('MyAppProperty')
And It works! The app property "MyAppProperty" is sent to Matlab base Workspace and "openvar" command works, opening the variable in the built-in variables editor.
But It does not working in the same app, but compiled - error mesage below.
Undefined function 'openvar' for input arguments of type 'char'.
What should I do? Is it a Matlab Compiler limitation?
0 Comments
Accepted Answer
Walter Roberson
on 16 Jul 2021
None of the IDE tools are available in compiled applications. For example the property inspector is also not available.
2 Comments
Walter Roberson
on 16 Jul 2021
Mathworks Support did not make the decision.
Read the MATLAB Compiler license terms. You are only permitted to use it to create applications that do specific things. You are forbidden to use it to create applications that effectively replace the interactive MATLAB. If you have need of interactive exploration then the license terms say that you need to buy MATLAB licenses for each user. MATLAB Compiler is specifically not intended to permit people to use the full interactivity for free.
It is unlikely that section of the licence terms will change substantially, and if that is too restrictive for your purposes, then you should find a different software manufacturer.
More Answers (0)
See Also
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!