Modal to upload file

1 次查看(过去 30 天)
Paulo
Paulo 2024-5-22
I'm trying to create a modal that will pause my application in order to upload input files.
c=uialert(app.UIFigure,'Please Upload .mat file','Input file','Icon','question','CloseFcn','uiresume(app.UIFigure)');
waitfor(c);
uiopen('*.mat');

回答(1 个)

Rohit Kulkarni
Rohit Kulkarni 2024-5-23
Hi Paulo,
In order to create a file selection dialog box that you can compile, it’s recommended to use uigetfile function.
Please refer to the following documentation link for more information regarding it:
Thanks

类别

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