pcolor map in matlab

余生颓废 提交于 2019-12-18 09:23:39

问题


In matlab, we can use pcolor to show the magnitude of data in color. I am trying the following data

 A=[1:10; 16:25; 86:95];
 pcolor(A);

It only show two rows. Why is that and how to show all those three data set? Thanks.


回答1:


From documentation of pcolor

In the default shading mode, 'faceted', each cell has a constant color and the last row and column of C are not used.

Use imagesc instead

imagesc(A);


来源:https://stackoverflow.com/questions/12662815/pcolor-map-in-matlab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!