Got Questions? Get Answers.
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:
Colormap

Subject: Colormap

From: Iuri Herzfeld

Date: 22 Nov, 2010 17:39:04

Message: 1 of 2

How can I reverse the colormap? I want the low values to look light, and higher values to look darker using the 'Gray' Colormap.

Subject: Colormap

From: Sean de

Date: 22 Nov, 2010 18:30:22

Message: 2 of 2

"Iuri Herzfeld" <herzfeld@soest.hawaii.edu> wrote in message <ice9ro$1uu$1@fred.mathworks.com>...
> How can I reverse the colormap? I want the low values to look light, and higher values to look darker using the 'Gray' Colormap.

Flip it up and down, i.e. FLIPUD

upside_down_map = flipud(upside_up_map);

-Sean

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