combineColormaps
バージョン 1.0.0 (1.49 KB) 作成者:
TjeerdB
Combine two color maps to highlight significant values in image
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 (2023). combineColormaps (https://www.mathworks.com/matlabcentral/fileexchange/70441-combinecolormaps), MATLAB Central File Exchange. 取得済み .
MATLAB リリースの互換性
作成:
R2018b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linuxカテゴリ
- MATLAB > Graphics > Images > 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 |