save multiple gui window in appdesigner

1 visualización (últimos 30 días)
Harish M Y
Harish M Y el 28 de Jul. de 2021
Editada: Adam Danz el 3 de Ag. de 2021
Hi,
I am using appdesigner, In the callback of "RUN" button I have called one .m file which is executing perfectly and it creates multiple graphs in different pop up windows.
I want to use "SAVE" button to save all the multiple popup windows in user specified path.
Any help is appreciated. Thanks
  1 comentario
Rik
Rik el 28 de Jul. de 2021
How exactly is this question different from your previous one?

Iniciar sesión para comentar.

Respuestas (1)

Adam Danz
Adam Danz el 28 de Jul. de 2021
  1. In the m-file, before creating the first figure, store a list of pre-existing figures. Hint: findobj(0,'type','figure')
  2. After creating the last figure, create a second list of all existing figures.
  3. Compare the two vectors of figure handles using ismember to get a list of all new figures generated while running the m-file.
  4. Use uigetdir to allow the user to select a directory, then loop through each figure and saveas().
  2 comentarios
Harish M Y
Harish M Y el 29 de Jul. de 2021
Thanks for the input. Let me try the same
Adam Danz
Adam Danz el 29 de Jul. de 2021
Editada: Adam Danz el 3 de Ag. de 2021
If you get stuck, share the relevant code in a comment and describe the problem so we can help you get un-stuck. Good luck.

Iniciar sesión para comentar.

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by