Save figure as jpg with 600dpi
조회 수: 18 (최근 30일)
이전 댓글 표시
Hi all,
I am trying to save some figures through coding, in jpg format and 600dpi.
Hovewer I have tried these, but still getting error (Matlab version 2019a)
saveas('figure.jpg')
print(gcf,'figure.jpg','-jpg','-r600');
thanks in advance
댓글 수: 1
채택된 답변
Jan
2019년 9월 4일
편집: Jan
2019년 9월 4일
saveas('figure.jpg')
The first input must be the handle of a figure.
print(gcf, 'figure.jpg', '-jpg', '-r600');
There is no '-jpeg' option for the print command. Do you mean '-djpeg' ?
댓글 수: 5
Walter Roberson
2024년 11월 10일
The "-d" prefix stands for "device". The output is to be sent to the JPG "device"
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!