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

2 次查看(过去 30 天)
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Contour Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by