When I use UIGETFILE function then the gui minimized how can I stop it to do this?
15 次查看(过去 30 天)
显示 更早的评论
[filename,filepath]=uigetfile({'*.*'},'Select and image');
2 个评论
TADA
2019-1-13
which GUI?
is this a gui taht runs this on a callback function?
what exactly are you running here?
回答(3 个)
Cody Lau
2019-7-23
figure(app.UIFigure);
This should reopen the GUI windown after it minimises.
1 个评论
Subhamoy Saha
2020-2-28
The problem is not with imshow() rather it is with uigetfile() function. I was also facing same issue with GUI built with both guide and appdesigner. Your solution works for me. Thanks!
Walter Roberson
2019-1-13
imshow() resizes the figure under the condition that "hold" is off and the axes is in the "default" position as-if it is the only axes in the figure.
To avoid this, either turn hold on for the axes, or make the axes a non-default size, or else (my recommendation) do not use imshow() for any purpose other than interactive exploration.
3 个评论
Walter Roberson
2019-1-13
Which operating system are you using? uigetfile() uses operating system facilities in order to be consistent with system "look and feel"
Moses Molatlhegi
2022-5-31
This one also works for newer versions of matlab
figure(app.figure1);
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!