combineColormaps

Version 1.0.0 (1,49 KB) von TjeerdB
Combine two color maps to highlight significant values in image
52 Downloads
Aktualisiert 1. Mär 2019

Lizenz anzeigen

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

Zitieren als

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

Kompatibilität der MATLAB-Version
Erstellt mit R2018b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Modify Image Colors finden Sie in Help Center und MATLAB Answers
Tags Tags hinzufügen

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0