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:
reverse colormap

Subject: reverse colormap

From: Wendy

Date: 3 Mar, 2010 17:46:03

Message: 1 of 2

Hi all,

I am making a surf plot. The current colormap is from blue to red. Is there a way that I can reverse the colormap, so it is from red to blue?

Thank you,
Wendy

Subject: reverse colormap

From: Steven Lord

Date: 3 Mar, 2010 17:53:09

Message: 2 of 2


"Wendy " <wlq121@gmail.com> wrote in message
news:hmm78r$api$1@fred.mathworks.com...
> Hi all,
> I am making a surf plot. The current colormap is from blue to red. Is
> there a way that I can reverse the colormap, so it is from red to blue?
>
> Thank you,
> Wendy

colormap(flipud(colormap))

--
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ

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