plot graph figures as binary image

2 Ansichten (letzte 30 Tage)
San May
San May am 24 Dez. 2020
Kommentiert: Zhang Qingyang am 24 Dez. 2020
If I want to plot a figure and save as binary image in jpg or png file, what command should I use?

Antworten (2)

Image Analyst
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);

Zhang Qingyang
Zhang Qingyang am 24 Dez. 2020
saveas
such as
saveas(gca,'Filename.jpg');
gca is the handle of you current axis

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