필터 지우기
필터 지우기

resize each pixel in an image based on its width and height

조회 수: 3 (최근 30일)
Farz Tak
Farz Tak 2016년 8월 19일
댓글: Farz Tak 2016년 8월 19일
I want to 2d plot something like the picture but I don't want to use pcolor since it plot the center of every two pixels i.e., if my Matrix A has the size of (10,7), the pocolor gives (9,6) pixels. Imagesc doesn't have this problem but I cannot adjust the pixel size like what pcolor does (image below is with pcolor). Do you have any suggestion for this problem? Thanks

답변 (1개)

Walter Roberson
Walter Roberson 2016년 8월 19일
  댓글 수: 2
Farz Tak
Farz Tak 2016년 8월 19일
편집: Farz Tak 2016년 8월 19일
Thanks.I looked into that and still reading. I'll get back it that works and doesn't reduce the number of pixels in x and y direction. But I think it is the "surf" function that does the same thing as pcolor.
Farz Tak
Farz Tak 2016년 8월 19일
No, texture mapping does reduces the pixels by one in each direction.

댓글을 달려면 로그인하십시오.

제품

Community Treasure Hunt

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

Start Hunting!

Translated by