Is it possible to use "openvar" in a compiled app?

3 visualizaciones (últimos 30 días)
Eric Delgado
Eric Delgado el 16 de Jul. de 2021
Comentada: Walter Roberson el 16 de Jul. de 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?

Respuesta aceptada

Walter Roberson
Walter Roberson el 16 de Jul. de 2021
None of the IDE tools are available in compiled applications. For example the property inspector is also not available.
  2 comentarios
Eric Delgado
Eric Delgado el 16 de Jul. de 2021
Wow... It is true! No property inspector, no advanced tools to edit an image created in an old figure object.
It is not nice, @MathWorks Support Team. Time to evolve (or made a better uifigure to avoid use of figure objects in apps).
Walter Roberson
Walter Roberson el 16 de Jul. de 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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB Compiler en Help Center y File Exchange.

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by