Code covered by the BSD License
09 Oct 2009
A colormap from bright blue, through white, and then to bright red.
Watch this File
REDBLUE(M), is an M-by-3 matrix that defines a colormap.
The colors begin with bright blue, range through shades of blue to white, and then through shades of red to bright red. REDBLUE, by itself, is the same length as the current figure's colormap.
This file inspired Bipolar Colormap, Rgbmap Color Maps, Cubehelix Colormaps, and Color Brewer: Attractive And Distinctive Colormaps.
I downloaded your redblue colormap. It's nice.
Thanks a lot dude. I appreciate your effort.
thank you very much,
Just what I was looking for
Thankyou: nice colormap. What do you think of this? A neater way to obtain c:
n = fix(0.5*m);
r = [(0:1:n-1)/n,ones(1,n)];
g = [(0:n-1)/n, (n-1:-1:0)/n];
b = [ones(1,n),(n-1:-1:0)/n];
c = [r(:), g(:), b(:)];
The function "colormapeditor" from MATLAB will be helpful to customizer the colormap