plot graph figures as binary image
4 views (last 30 days)
Show older comments
If I want to plot a figure and save as binary image in jpg or png file, what command should I use?
0 Comments
Answers (2)
Image Analyst
on 24 Dec 2020
The preferred way for R2020a and later is:
exportgraphics(gcf, 'MyFigure.png'); % Or can use gca for the axis (not the whole figure);
Zhang Qingyang
on 24 Dec 2020
saveas
such as
saveas(gca,'Filename.jpg');
gca is the handle of you current axis
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!