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