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 Ansicht (letzte 30 Tage)
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?

Akzeptierte Antwort

dpb
dpb am 23 Okt. 2018
...
fn='yourchosenfilename';
saveas(gcf,fn,'jpeg')
See
doc saveas % for more details

Weitere Antworten (0)

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by