plot graph figures as binary image
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
If I want to plot a figure and save as binary image in jpg or png file, what command should I use?
0 Kommentare
Antworten (2)
Image Analyst
am 24 Dez. 2020
The preferred way for R2020a and later is:
exportgraphics(gcf, 'MyFigure.png'); % Or can use gca for the axis (not the whole figure);
1 Kommentar
Zhang Qingyang
am 24 Dez. 2020
saveas
such as
saveas(gca,'Filename.jpg');
gca is the handle of you current axis
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!