How to reset variables in MATLAB GUI?

7 visualizaciones (últimos 30 días)
Tara Prasad Mishra
Tara Prasad Mishra el 7 de Jul. de 2017
Comentada: Adam el 10 de Jul. de 2017
I am developing a MATLAB GUI using app designer. I want to create a button which deletes specific variables. The variables are initially set using the setappdata function.
  4 comentarios
Image Analyst
Image Analyst el 8 de Jul. de 2017
Hard, or impossible, to say without seeing your code.
Adam
Adam el 10 de Jul. de 2017
I've only really used appdesigner once, but apart from its annoying way of not allowing you to edit parts of the code it creates it is just based on a class whose entire purpose is to share data between its functions.
Show the code that you have, as Image Analyst says, to enable people to be more help.

Iniciar sesión para comentar.

Respuestas (1)

Jan
Jan el 8 de Jul. de 2017
It depends on what "delete" means.
You do not create variables by the setappdata command, but this function stores the contents of the variables in the ApplicationData of a GUI element. Afterwards you can remove the entry by rmappdata, as mentioned in the documentation of setappdata.

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by