how to change variable inside a function from a gui

5 visualizaciones (últimos 30 días)
Kobi
Kobi el 10 de Dic. de 2013
Respondida: Walter Roberson el 10 de Dic. de 2013
i need to change a value inside a function from gui. how can i do that?

Respuestas (1)

Walter Roberson
Walter Roberson el 10 de Dic. de 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

Categorías

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

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by