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

1 view (last 30 days)
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

Answers (0)

Categories

Find more on Contour Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!