use "uigetfile" in App Designer

45 visualizaciones (últimos 30 días)
Lixuan Xing
Lixuan Xing el 25 de Jul. de 2019
Comentada: Stuart Fogel el 1 de Mayo de 2023
When i use "uigetfile" command in App Designer, chose a file and click "open", the whole UIFigure will automatically go under the Matlab-mainwindow and all other files . I must choose the UIFigure again to use it. How to solve it problem.
  1 comentario
Paola Martin
Paola Martin el 26 de Mzo. de 2023
Could you please explain a little bit more about this problem? i will start doing an app and i was just about to use this command.

Iniciar sesión para comentar.

Respuesta aceptada

Adam Danz
Adam Danz el 25 de Jul. de 2019
Wow, that's super annoying (I just confirmed it, r2019a). It's happening in the uigetfile() function.
A workaround is to just call your app figure right after the uigetfile() line.
f = uigetfile();
figure(app.UIFigure)
  6 comentarios
Thomas Koenig
Thomas Koenig el 2 de Dic. de 2022
I'm waiting for this to be resolved forever now. It seems like nobody cares. Truly disappointing.
Stuart Fogel
Stuart Fogel el 1 de Mayo de 2023
I also have this issue. From what I've read it's (mostly?) specific to Mac. Running R2202b for Mac.
I got tired of how annoying this was from a user-standpoint, so I created an app in appdesigner that duplicates the functionality of uigetfile. Here's a link to the code in the GitHub repo:
It may not be perfect, so please let me know if something is not quite right.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by