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)
Ältere Kommentare anzeigen
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?
0 Kommentare
Akzeptierte Antwort
dpb
am 23 Okt. 2018
...
fn='yourchosenfilename';
saveas(gcf,fn,'jpeg')
See
doc saveas % for more details
2 Kommentare
Weitere Antworten (0)
Siehe auch
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!