DSPRelated.com
Forums

colormap function

Started by kimzdsp July 17, 2003
Hi,

Currently I am trying to use the Matlab to plot a spectrogram image.
I want this image is based on the scaled spectrogram data in dB
with the 8-level "heat" color-encoding scheme, which is black, brown,
blue, cyan, magenta, red, yellow and white. I have searched through
all the Matlab supported colormaps. It looks like none of them I can
use. Does anyone have some ideas on it? Thanks!

Kim



Why not create your own colormap? help colormap
explains the format of the colormap data. All you will
need is a 8x3 matrix with each row containing the rgb
values of a color.

Navan

--- kimzdsp <> wrote:
> Hi,
>
> Currently I am trying to use the Matlab to plot a
> spectrogram image.
> I want this image is based on the scaled spectrogram
> data in dB
> with the 8-level "heat" color-encoding scheme, which
> is black, brown,
> blue, cyan, magenta, red, yellow and white. I have
> searched through
> all the Matlab supported colormaps. It looks like
> none of them I can
> use. Does anyone have some ideas on it? > Thanks!
>
> Kim


__________________________________