pcolor not showing edge of matrix

조회 수: 3 (최근 30일)
Christopher
Christopher 2014년 2월 27일
댓글: Christopher 2014년 2월 27일
I am plotting a matrix using the following:
figure(1);
pcolor(VX);
shading flat;
colorbar;
xlabel('x, km');
ylabel('y, km');
axis ij image ;
title('vx1');
It looks how I want, but for some reason it is not showing the right and bottom edges of the matrix VX. If I replot the matrix using 'shading interp', these edges are clearly interpolated into the graphed area, but with flat shading they are cut off.
What is wrong?
Also, for some reason the axes label the edges of the pixel and not the pixels themselves (which represent the actual matrix values), which seems erroneous for this kind of plot. What is going on there?

채택된 답변

Mischa Kim
Mischa Kim 2014년 2월 27일
Christopher, this answer should help.
  댓글 수: 1
Christopher
Christopher 2014년 2월 27일
imagesc seems to work correctly.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Surface and Mesh Plots에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by