save GUI fig by name from edit text
Mostrar comentarios más antiguos
Hi
I am trying to save a figure in GUI, I want when the user click on a push button the below window appear.
I applied the follwoing function:
filter = {'*.m';'*.emf';'*.*'};
[file, path] = uiputfile(filter);
but when I press (save) nothing is saved. The problem is how to connect my figure to the above function.

4 comentarios
Adam Danz
el 15 de Nov. de 2019
Is the figure external to your GUI or is embedded within your gui?
How did you create the GUI - with guide or app designer?
Adam Danz
el 15 de Nov. de 2019
Rik
el 15 de Nov. de 2019
Note that copying the figure is not going to copy the callbacks, so you will end up with a figure that is only a visual copy of your GUI but no longer has any functionality.
Adam Danz
el 15 de Nov. de 2019
I was worried about that too but it turns out that the goal was to copy the embedded axes onto an external figure.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Interactive Control and Callbacks 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!