how to change variable inside a function from a gui
Afficher commentaires plus anciens
i need to change a value inside a function from gui. how can i do that?
1 commentaire
Azzi Abdelmalek
le 10 Déc 2013
What does that mean?
Réponses (1)
Walter Roberson
le 10 Déc 2013
There are limited circumstances under which a GUI can force a variable in a function to change. It is easier if the GUI makes the new value available and the function asks for the current value.
while true
drawnow();
should_quit = get(handles.QuitButton, 'Value');
if should_quit; break; end
....
end
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!