フィルターのクリア

GUI Matlab. SAVE button!

7 ビュー (過去 30 日間)
MartiBB
MartiBB 2015 年 9 月 16 日
回答済み: MartiBB 2015 年 9 月 16 日
Hello, I'm creating a GUI Matlab and what I want to do is save the final result of the GUI as image. I want a picture of my graphical interface complete and I would like to choose later the image name and the folder. If possible I would get through a SAVE button placed in the same GUI. Thank you!
  1 件のコメント
Jan
Jan 2015 年 9 月 16 日
This sounds fine. What exactly is your question?

サインインしてコメントする。

回答 (2 件)

Jan
Jan 2015 年 9 月 16 日
A general answer to a general question:
  • Create a button with the string 'Save'
  • Let its callback call a function for saving the figure
  • Use the print command to save the figure in the wanted format.
Many users have success with export_fig from the FileExchange, e.g. for PDF output. But it will work without this tool also.
If you have a specific question, please ask again.
  2 件のコメント
MartiBB
MartiBB 2015 年 9 月 16 日
I have my GUI, that after running the program is nothing more than an image. I want to save my GUI as an image, so I want to see the writings that I inserted, the pictures I uploaded, the results I have achieved. I want to do this by entering a SAVE button that opens a window that allows me to choose the image name and directory. I don't know if I explained.
MartiBB
MartiBB 2015 年 9 月 16 日
I tried to do this with the command "saveas" and works. Unfortunately I can not choose the directory and the file name each time. How can I do?

サインインしてコメントする。


MartiBB
MartiBB 2015 年 9 月 16 日
I have my GUI, that after running the program is nothing more than an image. I want to save my GUI as an image, so I want to see the writings that I inserted, the pictures I uploaded, the results I have achieved. I want to do this by entering a SAVE button that opens a window that allows me to choose the image name and directory. I don't know if I explained.
I tried to do this with the command "saveas" and works. Unfortunately I can not choose the directory and the file name each time. How can I do?

カテゴリ

Help Center および File ExchangeDisplay Image についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by