The command
pcolor(1:4, 1:4, randn(4,4))
produces a tiled plot with 9 colors even though
randn(4,4)
is a collection of 16 numbers. What happened to the other 5?

 채택된 답변

Image Analyst
Image Analyst 2015년 6월 4일

0 개 추천

Yes. pcolor() leaves off the last row and column. Don't use it - I never do. Use imshow() instead. Or, if you have an old version of MATLAB, or don't have the Image Processing Toolbox, use image() or imagesc().

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

제품

태그

질문:

2015년 6월 4일

답변:

2015년 6월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by