No BSD License  

Highlights from
blue to red colormap

1.0

1.0 | 1 rating Rate this file 7 Downloads (last 30 days) File Size: 930 Bytes File ID: #11175
image thumbnail

blue to red colormap

by David Legland

 

24 May 2006 (Updated 24 May 2006)

colormap showing a gradient from blue to green, then from green to red

| Watch this File

File Information
Description

usage :
map = blue2red;
colormap(blue2red);

Returns a 256x3 array which can be used with colormap.
map(1,:) corresponds to blue color,
map(64,:) corresponds to cyan color,
map(128,:) corresponds to green color,
map(192,:) corresponds to yellow color,
map(256,:) corresponds to red color,
and all indices inbetween are gradient between the 2 extremes colors.

Example
colormap(blue2red);

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (3)
16 Dec 2008 Jody Klymak

This is just a subset of the jet colormap.

21 Mar 2009 JEss

i am wondering if it is possible to have a complete opposite of the jet colormap? currently, the jet colormap start with blue and ends with red. I will like to have it starts with red and ends with blue for my project. Do you have any idea what functions can i use?

02 Apr 2009 David Legland

to Jess:
you can reverse your colormap using matlab indexing:
map1 = jet(256);
map2 = map1(end:-1:1, :);

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
annotation David Legland 22 Oct 2008 08:26:41
customization David Legland 22 Oct 2008 08:26:41
colormap David Legland 22 Oct 2008 08:26:41
visualization David Legland 22 Oct 2008 08:26:41
colors David Legland 22 Oct 2008 08:26:41
graphics David Legland 22 Oct 2008 08:26:41

Contact us at files@mathworks.com