Identify thresholds with colours in contourf

Hi, my problem is:
I've got a square matrix with number from -1k to +50k, I would like to print these with contourf identifying two thresholds with colours. For example if the cell(i,j) is less than X, I would like to see red colour instead if the cell(i,j) is greater than X, I would like to see green colour, in the middle orange. How can I do this?

Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Hilfe-Center und File Exchange

Gefragt:

M C
am 20 Jan. 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by