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 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Printing and Saving in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by