Coloring
조회 수: 4 (최근 30일)
이전 댓글 표시
Suppose I have a code that plots contour lines. How might I color in the the region say of altitude >h?
Many thanks.
댓글 수: 0
채택된 답변
fjnb86
2012년 4월 2일
I would use contour with specification of level and combine with hold on.
Take al look to the documentation
contour(Z,v) draws a contour plot of matrix Z with contour lines at the data values specified in the monotonically increasing vector v. The number of contour levels is equal to length(v). To draw a single contour of level i, use contour(Z,[i i]). Specifying the vector v sets the LevelListMode to manual to allow user control over contour levels.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!