Forcing GUI to wait for user to select a file

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.

 Réponse acceptée

Geoff Hayes
Geoff Hayes le 19 Oct 2015
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.

Plus de réponses (0)

Catégories

En savoir plus sur Update figure-Based Apps dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by