How can I control the color in "contourf" in GUI according to the range that I give to program?

2 Ansichten (letzte 30 Tage)
I'm plotting a contour in GUI MATLAB using contourf, and I need to color the contour with just limited number of colors ( for example 3 colors). And I also wanna determine the range of each color.
For instance, suppose I need 3 colors and my data is in the range of [0 10]. I wanna have a 6 edit boxes to receive the different ranges for each color.
1-3 : red
3-6 : blue
6-10 : green.
So every time I'm able to change the range and therefore the color of the contour.
Thanks

Antworten (0)

Kategorien

Mehr zu Contour Plots finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by