combineColormaps

版本 1.0.0 (1.5 KB) 作者: TjeerdB
Combine two color maps to highlight significant values in image
52.0 次下载
更新时间 2019/3/1

查看许可证

function cmap = combineColormaps(low, high, cutoff)
% Creates a new colormap by combining two colormaps. Low and high specificy
% the minimum and maximum of your data (clim) and cutoff the value at which
% to switch to the other colormap
%
% Example:
%
% [X,Y] = meshgrid(-10:0.1:10,-10:0.1:10);
% f = sinc(sqrt((X/pi).^2+(Y/pi).^2));
% clim = [min(f(:)),max(f(:))];
% imagesc(f,clim)
% cmap = combineColormaps(clim(1), clim(2), 0.2);
% colormap(cmap)
% colorbar

引用格式

TjeerdB (2024). combineColormaps (https://www.mathworks.com/matlabcentral/fileexchange/70441-combinecolormaps), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2018b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Modify Image Colors 的更多信息
标签 添加标签

Community Treasure Hunt

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

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