I used matlab2021b to design a GUI for loading pictures, but when I select a local file, the GUI will be hidden to the next level of the desktop, why is this?

 채택된 답변

Abolfazl Chaman Motlagh
Abolfazl Chaman Motlagh 2022년 2월 17일
편집: Abolfazl Chaman Motlagh 2022년 2월 17일

0 개 추천

after the line that you open a file selector (uigetimagefile for example), use this:
figure(FIGURE);
it will bring up your GUI on top again. use your gui figure name instead of FIGURE. for example if you are using appdesigner use:
figure(app.UIFigure);

추가 답변 (1개)

Michael
Michael 2022년 8월 4일

0 개 추천

I find that if I am drawing other figures from within a GUI that the GUI starts moving around the screen.
Especially if you are testing and you just throw up a figure and plot something
to fix this -- I do something along the lines of
figure(app.UIFigure); movegui(app.UIFigure, 'west');

카테고리

도움말 센터File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

제품

태그

질문:

2022년 2월 17일

답변:

2022년 8월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by