HELP GUI!!! Create a SAVE Button!

Hello, I am creating a GUI Matlab and what I want to do is save the final result of the GUI as image. For instance, if I input names or numbers in Edit Text, if I upload pictures, etc., I would like to see them. I want a picture of my graphical interface complete. If possible I would get through a SAVE button placed in the same GUI. Thank you!

 采纳的回答

Create a push button, and within the callback function for the button (the function that executes when the button is pressed), use the "saveas" command to save the current figure as an image.
saveas(gcf,'output.png')

1 个评论

Thank you for kind response. If I want to choose later the image name and the folder how should I do? Still using SAVE button.

请先登录,再进行评论。

更多回答(1 个)

mobin
mobin 2016-5-27
编辑:mobin 2016-9-29

0 个投票

use this [filename, pathname] = uiputfile(... {'*.png';'*.jpg';'*.*'},... 'Save as');
refer link below for detailed information:
or search the " uinputfile " in your matlab help

类别

帮助中心File Exchange 中查找有关 Printing and Saving 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by