Execute a function only after GUI closes

조회 수: 5 (최근 30일)
Fer
Fer 2015년 6월 29일
댓글: Fer 2015년 6월 29일
Hello. Upon clicking a button on my main GUI, a second gui will appear with which the user will input the paths of the files to be used and specify some other caracteristics. I am storing this data using setappdata and getappdata. Problem is, the opening of the subgui and the consequent getappdata funtcions are all to be ran upon pressing the same button. When this happens, the program will open the secondary gui but continue running the code without waiting for the user's inputs and the subgui to be closed, whic of course is causing some trouble.
How can I tell Matlab not to go on with the code until the secondary gui is closed?
Thank you

채택된 답변

Walter Roberson
Walter Roberson 2015년 6월 29일
See uiwait() and waitfor()
  댓글 수: 1
Fer
Fer 2015년 6월 29일
Thank you, just what I needed! I knew it had to be something like that but I couldn't find the exact function I wanted.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by