Matlab中的pcolor贴图 [英] pcolor map in matlab

查看:453
本文介绍了Matlab中的pcolor贴图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在matlab中,我们可以使用pcolor来显示彩色数据的大小.我正在尝试以下数据

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.

推荐答案

来自 pcolor

在默认着色模式多面"下, 每个单元格具有恒定的颜色,并且最后一行和最后一列 不使用C.

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

改为使用imagesc

Use imagesc instead

imagesc(A);

这篇关于Matlab中的pcolor贴图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆