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
Azzi Abdelmalek
2013년 12월 10일
What does that mean?
답변 (1개)
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에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!