plot graph figures as binary image

조회 수: 4 (최근 30일)
San May
San May 2020년 12월 24일
댓글: Zhang Qingyang 2020년 12월 24일
If I want to plot a figure and save as binary image in jpg or png file, what command should I use?

답변 (2개)

Image Analyst
Image Analyst 2020년 12월 24일
The preferred way for R2020a and later is:
exportgraphics(gcf, 'MyFigure.png'); % Or can use gca for the axis (not the whole figure);
  댓글 수: 1
Zhang Qingyang
Zhang Qingyang 2020년 12월 24일
Obviously you are more professional!

댓글을 달려면 로그인하십시오.


Zhang Qingyang
Zhang Qingyang 2020년 12월 24일
saveas
such as
saveas(gca,'Filename.jpg');
gca is the handle of you current axis

Community Treasure Hunt

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

Start Hunting!

Translated by