Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Interpolate colormap

Subject: Interpolate colormap

From: fas

Date: 4 Feb, 2010 10:33:32

Message: 1 of 2

Hi
I am trying to create a colormap between two extreme. Let the lowest
value be assigned 1,1,1 and the highest value 1,0,0. Any value in
between should be interpolated.
e.g 0 values should get 1,1,1 from the color map , 1000 should get
1,0,0 and suppose any value in between eg. 70 should get interpolated
value between RGB [1,1,1] and [1,0,0],

Any help
colormap([1,1,1; 1,0,0]) does not do interpolation.

Subject: Interpolate colormap

From: Bruno Luong

Date: 4 Feb, 2010 12:53:21

Message: 2 of 2

Use INTERP1 to create the map you wish.

Bruno

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us