关于matlab中的colormap问题
2013-12-10 16:22
603 查看
matlab画图后,如果想将不同的值用不同的颜色表示,可以使用colormap这个函数。matlab自带的colormap有很多选项
其中最常用的是第一个,也是默认的选项。那么它是怎么得来的呢?
jet ranges from blue to red, and passes through the colors cyan, yellow, and orange. It is a variation of the hsv colormap. The jet colormap
is associated with an astrophysical fluid jet simulation from the National Center for Supercomputer Applications.
其中最常用的是第一个,也是默认的选项。那么它是怎么得来的呢?
jet ranges from blue to red, and passes through the colors cyan, yellow, and orange. It is a variation of the hsv colormap. The jet colormap
is associated with an astrophysical fluid jet simulation from the National Center for Supercomputer Applications.
map=[1 0 0;0 1 0;0 0 1];%三原色 colormap(map) gray(100)生成100种从黑到白的渐变色,gray(128)生成128色,默认值是256色。如colormap(gray(32))就是32色的灰度色。
在matlab命令行输入cmap=colormap,可以得到当前的色谱
cmap=colormap('jet') cmap = 0 0 0.6667 0 0 1.0000 0 0.3333 1.0000 0 0.6667 1.0000 0 1.0000 1.0000 0.3333 1.0000 0.6667 0.6667 1.0000 0.3333 1.0000 1.0000 0 1.0000 0.6667 0 1.0000 0.3333 0
即将峰值pv值平均分配到colorbar中,相应的颜色代表相应数值
map1 = colormap('jet') map1 = 0 0 0.5625 0 0 0.6250 0 0 0.6875 0 0 0.7500 0 0 0.8125 0 0 0.8750 0 0 0.9375 0 0 1.0000 0 0.0625 1.0000 0 0.1250 1.0000 0 0.1875 1.0000 0 0.2500 1.0000 0 0.3125 1.0000 0 0.3750 1.0000 0 0.4375 1.0000 0 0.5000 1.0000 0 0.5625 1.0000 0 0.6250 1.0000 0 0.6875 1.0000 0 0.7500 1.0000 0 0.8125 1.0000 0 0.8750 1.0000 0 0.9375 1.0000 0 1.0000 1.0000 0.0625 1.0000 0.9375 0.1250 1.0000 0.8750 0.1875 1.0000 0.8125 0.2500 1.0000 0.7500 0.3125 1.0000 0.6875 0.3750 1.0000 0.6250 0.4375 1.0000 0.5625 0.5000 1.0000 0.5000 0.5625 1.0000 0.4375 0.6250 1.0000 0.3750 0.6875 1.0000 0.3125 0.7500 1.0000 0.2500 0.8125 1.0000 0.1875 0.8750 1.0000 0.1250 0.9375 1.0000 0.0625 1.0000 1.0000 0 1.0000 0.9375 0 1.0000 0.8750 0 1.0000 0.8125 0 1.0000 0.7500 0 1.0000 0.6875 0 1.0000 0.6250 0 1.0000 0.5625 0 1.0000 0.5000 0 1.0000 0.4375 0 1.0000 0.3750 0 1.0000 0.3125 0 1.0000 0.2500 0 1.0000 0.1875 0 1.0000 0.1250 0 1.0000 0.0625 0 1.0000 0 0 0.9375 0 0 0.8750 0 0 0.8125 0 0 0.7500 0 0 0.6875 0 0 0.6250 0 0 0.5625 0 0 0.5000 0 0
相关文章推荐
- 关于matlab GUI重命名的问题。
- 关于matlab连续读入图片的问题
- Matlab关于批量读取和存储图像这类问题的经验分享
- matlab中关于不同包中的同名函数的调用问题
- 关于Matlab中avi视频的读取问题
- 关于win10系统下matlabR2014中mex -setup报错问题
- matlab中关于读取.mat文件中的奇偶行数据问题
- 关于matlab程序打包成exe可执行文件或者jar包的常见问题
- 关于VC调用Matlab的问题
- 关于matlab图像保存的问题
- 关于目标跟踪matlab代码调试时一个问题的解决办法
- 关于matlab中图像太大只能缩小显示问题的解决
- 关于matlab与C混编的问题
- 关于Linux下面运行Matlab有关memory命令不存在的问题
- 关于matlab用export_fig去掉白边、保存图像等问题
- C++、Java和Matlab不同语言关于 y=(++x)+(++x);结果不同的问题
- 关于c#调用matlab时,deploytool选项没有.NET Assembly的问题的解决
- 关于MATLAB图像相关性分析的问题
- 关于Matlab作图的若干问题
- matlab中关于转到二值化图像的问题