Colormap formulae

版本 1.0 (4.5 KB) 作者: Masayuki Tanaka
It is pseudo color and color pallet based on rgbformulae of gnuplot.
141.0 次下载
更新时间 2018/4/3

查看许可证

It provide a variety of colormaps. It can be used for many plot applications.
In addition, it can be used to convert from a gray image to a pseudo color image.
Run demo.m!

Usage of colormap:
colormap(ax1,colormapformulae('traditional ', 2560));
or
colormap(ax1,colormapformulae([7,5,15], 2560));

It includes builtin colormap like 'cool'.
colormap(ax1,colormapformulae('cool', 2560));

Usage of pseudo color conversion:
col = gray2pseudocolor(gry,'traditional');
or
col = gray2pseudocolor(gry,[7,5,15]);

The numbers [7,5,15] specifiy the transformation functions of R, G, and B.
You can get different colormap by changing the numbers.

Each function includes help.
Please type:
% help [function]

引用格式

Masayuki Tanaka (2024). Colormap formulae (https://www.mathworks.com/matlabcentral/fileexchange/66724-colormap-formulae), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2017a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Colormaps 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0