saving figures using saveas
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
When I have a matlab figure open and I use the dropdown menu to save the figure as a JPEG, everything works fine and the whole image is saved correctly. My problem is that I have to save many images so I save it within my code using saveas(gca,'someimage.jpg'). When using saveas, most of the JPEG file is cut off at the top. Is there something i can do to get the whole image?
Thanks, Mason
답변 (1개)
Jessica Lam
2012년 6월 11일
will you consider to use one command print ?
For example , plot(1:10); plot_filename='testing.jpg'; print('-djpeg', plot_filename, '-r100'); http://www.mathworks.com.au/help/techdoc/ref/print.html
참고 항목
카테고리
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!