how to save figures without margin?
조회 수: 17 (최근 30일)
이전 댓글 표시
as the title, I need to save the figures or images shown in the figure with the same size of the image.
but there are always margins as shown in the following: (the size is 604x593)
the orginal image is : (the size is 500x430)
how to save figures without margin?
댓글 수: 0
채택된 답변
Valeriy
2020년 2월 23일
Try:
axis off; % If you have axis titles, labels, etc.
set (gca,'Position',[0 0 1 1]);
print(gcf,'Test.jpg', '-djpeg', '-r300');
댓글 수: 2
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!