Forcing GUI to wait for user to select a file

3 次查看(过去 30 天)
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 中查找有关 Migrate GUIDE Apps 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by