필터 지우기
필터 지우기

HELP GUI!!! Create a SAVE Button!

조회 수: 16 (최근 30일)
MartiBB
MartiBB 2015년 9월 15일
편집: mobin 2016년 9월 29일
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!

채택된 답변

Tim Jackman
Tim Jackman 2015년 9월 15일
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
MartiBB
MartiBB 2015년 9월 15일
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일
use this [filename, pathname] = uiputfile(... {'*.png';'*.jpg';'*.*'},... 'Save as');
refer link below for detailed information:
or search the " uinputfile " in your matlab help

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by