Remove white border of a MATLAB figure

조회 수: 7 (최근 30일)
saima
saima 2013년 5월 3일
Hello,
I want to use some MATLAB figures in a document. MATLAB figures always have a white border around them. Is it possible to crop that border from inside MATLAB?
-saima

답변 (1개)

Image Analyst
Image Analyst 2013년 5월 3일
You can use imcrop() if you have an image.
croppedImage = imcrop(fullImage, [x, y, width, height]);
You can also use indexing:
croppedImage = fullImage(row1:row2, col1:col2, :);
If it's a binary image, you can use imclearborder().

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by