필터 지우기
필터 지우기

Scaling axis using imagesc

조회 수: 1 (최근 30일)
J Shaw
J Shaw 2012년 10월 25일
Hi Everyone,
I'm plotting an image using "imagesc(x,y,image)" where the image is 100 x 1000 pixels and x goes from 0 to 2 cm and y goes from 0 to 100 m. If I don't do anything to the image, then the vertical direction of the image is way stretched out because it is only 100 pixels. However, if I used "axis image" to fit to the data, the vertical direction gets really scrunched up since it is only 2 units long and the horizontal direction is 100. Suggestions?

답변 (1개)

Image Analyst
Image Analyst 2012년 10월 25일
Try imshow() and set the xdata and ydata properties.

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by