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

New to MATLAB?

Thread Subject:
Color Step Size in contourf

Subject: Color Step Size in contourf

From: Borna

Date: 24 Nov, 2012 00:01:07

Message: 1 of 1

Hi guys,
I have a matrix A of 100 by 800 which has a minimum of min= 10.2 and a maximum of max=3.0987e+004.
I want to plot the contourf of this matrix but I want to control the colors to have 11 colors with the below step sizes:
max to (0.7)^1*max
1. (0.5)^1*max to (0.5)^2*max
2. (0.5)^2*max to (0.5)^3*max
 10. (0.5)^9*max to (0.5)^10*max
11. (0.5)^10*max to min

Could you please help me?
Thanks a lot

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