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:
jet - colormap options (list of colors for each number?)

Subject: jet - colormap options (list of colors for each number?)

From: Stan

Date: 14 Dec, 2013 04:35:10

Message: 1 of 2

I have created a jet colormap as follows:

> % Create a jet colormap
> c = 128;
> map = jet(c);

Now, I would like to know what color is produced by selecting a random number.

Example, what is the color associated with the numbers:
34
75
108
14

I cannot find the options for viewing "jet" information.

Is there a way for me to access this color information?

Subject: jet - colormap options (list of colors for each number?)

From: Steven Lord

Date: 16 Dec, 2013 02:47:13

Message: 2 of 2


"Stan " <studentt_44@hotmail.com> wrote in message
news:l8gn5u$a5e$1@newscl01ah.mathworks.com...
> I have created a jet colormap as follows:
>
>> % Create a jet colormap
>> c = 128;
>> map = jet(c);
>
> Now, I would like to know what color is produced by selecting a random
> number.
>
> Example, what is the color associated with the numbers:
> 34
> 75
> 108
> 14
>
> I cannot find the options for viewing "jet" information.
>
> Is there a way for me to access this color information?

The variable map will be a 128-by-3 matrix. Each row contains an RGB triplet
representing a color. So just look at the appropriate row of map.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for 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