plot graph figures as binary image
조회 수: 2 (최근 30일)
이전 댓글 표시
If I want to plot a figure and save as binary image in jpg or png file, what command should I use?
댓글 수: 0
답변 (2개)
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);
Zhang Qingyang
2020년 12월 24일
saveas
such as
saveas(gca,'Filename.jpg');
gca is the handle of you current axis
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Printing and Saving에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!