setappdata Question
Mostrar comentarios más antiguos
Within a GUI if I want to create a variable in one function and use it in another is "setappdata" a good stratagy to use? I am trying to get away from any use of global variables
Respuesta aceptada
Más respuestas (1)
Daniel Shub
el 30 de Sept. de 2011
1 voto
Yes, setappdata is a reasonable strategy and much better than a global variable. The FAQ provides some other alternatives.
Categorías
Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!