how to change variable inside a function from a gui

i need to change a value inside a function from gui. how can i do that?

답변 (1개)

Walter Roberson
Walter Roberson 2013년 12월 10일
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

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

태그

질문:

2013년 12월 10일

답변:

2013년 12월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by