Saving a figure in GUI
2 ビュー (過去 30 日間)
古いコメントを表示
On executing some GUI code i am getting a figure.If the user closes the image he/she is asked whether he/she needs to save the image. if the user answers as yes i should save the image in user selected location.How to do this.
Please help
Thanks in advance
0 件のコメント
回答 (1 件)
ES
2013 年 9 月 3 日
get the handle of the figure and do a saveas call.
eg: saveas(h,'filename','format')
format can be any image format or pdf etc.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Printing and Saving についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!