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
% [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(:))];
% cmap = combineColormaps(clim(1), clim(2), 0.2);
TjeerdB (2022). combineColormaps (https://www.mathworks.com/matlabcentral/fileexchange/70441-combinecolormaps), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!