Forcing GUI to wait for user to select a file

조회 수: 6 (최근 30일)
TastyPastry
TastyPastry 2015년 10월 19일
답변: Geoff Hayes 2015년 10월 19일
How can I pause execution and wait for uigetfile() to close? I don't see a figure handle being returned from uigetfile(), so I don't see how I can use uiwait() or waitfor() to pause execution.

채택된 답변

Geoff Hayes
Geoff Hayes 2015년 10월 19일
TastyPastry - you shouldn't need to pause execution of your GUI since uigetfile returns (at the very least) the name of the file that you have selected/chosen
filename = uigetfile
so execution will be "implicitly paused" when you call the above and "wait" for the user to select a file.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by