How do I prevent minimizing Matlab windows after calling uigetdir?
22 ビュー (過去 30 日間)
古いコメントを表示
Just to clarify, this part of my code works. However, when I run the mlapp and use the function that uses uigetdir, after I select the folder, all Matlab windows minimize. Is there a solution?
Thank you for your help.
1 件のコメント
Michal Dobai
2017 年 12 月 9 日
I'm struggling with the same thing in my app. Right now I'm using Chris McRaven's workaround from above mentioned link; set visibility of figure to 'off' and then 'on' again. It's not the best solution, because window will still blink for a brief moment, but it's still better than nothing.
採用された回答
Prasobhkumar P. P.
2020 年 9 月 7 日
編集済み: Prasobhkumar P. P.
2020 年 9 月 7 日
Even thought this is not the correct solution. But it will work.
[file, path]= uigetfile('*.*');
fN = fullfile(path,file);
figure(app.UIFigure); % magic command :)
1 件のコメント
Clark
2024 年 5 月 27 日
nice! At least solve my problem when using uigetfile in app designer.tks a lot
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Dialog Boxes についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!