handles using GUIDE, global vs. handles
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Matlab Noob:
Is using handles in a GUI as bad as using globals to be able to use variables in different functions? Is there a better method than saving variables to the handles?
0 Kommentare
Akzeptierte Antwort
Evan
am 24 Jun. 2013
Bearbeitet: Evan
am 24 Jun. 2013
Using the handles structure is a much more neat, simple and safe way of using variables in different functions. It also helps that GUIs and their respective mfiles created using GUIDE are already set up for this type of passing and saving data.
I think that, in the vast majority of cases, taking advantage of the handles structure through the use of functions like guidata() is your best option.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!