Saving images from figure window in Matlab.
조회 수: 1 (최근 30일)
이전 댓글 표시
I'm saving images 500 dpi, using rendering in export setup from figure window in Matlab. But there is little change I have to make. I get image like below: I mean there is lot of white space at sides which I want to eliminate. White portion is marked with black sketch in image.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166381/image.png)
I want to make my image look like this: Whitout any white portion at sides.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/166382/image.png)
How to do this?
Thanks.
댓글 수: 0
채택된 답변
Chad Greene
2017년 7월 27일
export_fig myfig.png -r500
if you want 500 dpi. If you want a tiny bit of white space around the image, say, 1% of the figure width, do
export_fig myfig.png -r500 -p0.01
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!