save multiple gui window in appdesigner
Mostrar comentarios más antiguos
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
el 28 de Jul. de 2021
Respuestas (1)
Adam Danz
el 28 de Jul. de 2021
0 votos
- In the m-file, before creating the first figure, store a list of pre-existing figures. Hint: findobj(0,'type','figure')
- After creating the last figure, create a second list of all existing figures.
- Compare the two vectors of figure handles using ismember to get a list of all new figures generated while running the m-file.
- Use uigetdir to allow the user to select a directory, then loop through each figure and saveas().
Categorías
Más información sobre Desktop en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!