I have a simple plotting gui via user input using buttons and wish to save figure on the axes as an jpg image using a pushbutton. what do I need to write on the pushbutton callback?

1 回表示 (過去 30 日間)
I have a simple plotting gui via user input using buttons and wish to save figure on the axes as an jpg image using a pushbutton. what do I need to write on the pushbutton callback?

採用された回答

dpb
dpb 2018 年 10 月 23 日
...
fn='yourchosenfilename';
saveas(gcf,fn,'jpeg')
See
doc saveas % for more details
  2 件のコメント
Young Lee
Young Lee 2018 年 10 月 25 日
Is there a way to save as user specified name? Like ui pop up screen or something?

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePrinting and Saving についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by