Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Pass output arguments obtained through GUI to calling script

조회 수: 1 (최근 30일)
geomod
geomod 2012년 5월 4일
마감: MATLAB Answer Bot 2021년 8월 20일
Hello,
It's an eternally returning question, but I can't figure it out based on the available articles/Q&A's. The GUI is set up with GUIDE.
The scenario is as follows. A GUI window appears and the user enters some input. If the user cancels or closes this window, I want a boolean back (used for not to execute the remainder of the calling script). If the user clicks the OK button, I want a variable returned.
For example: I don't understand how to pass the variable (declared in OK_button_Callback), given the fact that on that click event the GUI window closes (by deleting its handles).
Someone that can help me? Thanks in advance!

답변 (1개)

geomod
geomod 2012년 5월 8일
I eventually made it. It's crucial to understand uiwait() and uiresume() and not deleting handles so that the program doesn't get the chance to produce some output :-)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by