MATLAB: Set a new colormap cmoceancolorcolormapplottrisurf Hi, I would like to set a new colormap for my trisurf from the cmocean collection. Does anyone know how to set one of them? Thank you. Best Answer It should be as easy as calling something like cmap = cmocean('thermal'); % or 'deep', or whichever colormap from the collection you want.https://fr.mathworks.com/matlabcentral/fileexchange/57773-cmocean-perceptually-uniform-colormapscmocean maps are great, but may not be appreciated by reviewers Related SolutionsMATLAB: Colormap, how to get the color of the sea Try a program where you can easily get the RGB values of some color of blue that you like, like (r,g,b) = (rBlue, gBlue, bBlue). Then use linspace().numColors = 256; % Good value for 24/32 bit displays.oceanRed = 15;oceanGreen = 127;oceanBlue = 230;myColorMap = [linspace(oceanRed, 255, numColors)'/255,... linspace(oceanGreen, 255, numColors)'/255,... linspace(oceanBlue, 255, numColors)'/255]imshow('cameraman.tif');colormap(gca, myColorMap);colorbar MATLAB: Is it possible to have a periodic colorbar Try this:numReps = 5; % Number of times you want to replicate the 10-row jet colormap.cmap = repmat(jet(10), 5, 1) % Create new colormap consisting of 5 cyclical colormaps.% Let's see it!colormap(cmap);colorbar Related QuestionConvert to RGB file with colormap defined with different climChange a specific color(assigned to a value) con a colorbarHow to obtain an image from meshlsrm plot
Best Answer