Code covered by the BSD License  

Highlights from
Red Blue Colormap

5.0

5.0 | 3 ratings Rate this file 51 Downloads (last 30 days) File Size: 1.47 KB File ID: #25536
image thumbnail

Red Blue Colormap

by Adam Auton

 

09 Oct 2009

A colormap from bright blue, through white, and then to bright red.

| Watch this File

File Information
Description

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.

Acknowledgements
This submission has inspired the following:
Bipolar Colormap
MATLAB release MATLAB 7.7 (R2008b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
09 Oct 2009 Xianmin

The function "colormapeditor" from MATLAB will be helpful to customizer the colormap

08 Jan 2010 Rob Campbell

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(:)];

21 Oct 2010 Mathias Vanwolleghem  
28 Dec 2010 Cheryl Harrison

Just what I was looking for

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
colormap red blue Adam Auton 09 Oct 2009 11:36:40

Contact us at files@mathworks.com