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

2 visualizzazioni (ultimi 30 giorni)
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

Risposte (0)

Categorie

Scopri di più su Contour Plots in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by