Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
Ranges in colorbar, 3D shaded surf
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello, I would like to create a 3d shaded surface and I got X,Y,Z tables (X is 1*21 table, Y is 9*1 and Z is 9*21 table). I would alsoi like to define colors in colorbar in order Z values from 0 to 1803 to be red, from 1803 to 2755 to be yellow and from 2755 to 76387 to be green. All I get is this but the ranges are not correct: http://www.flickr.com/photos/87753025@N03/8031780155/ How can I do that? How can I proceed with coding? Thank you!
surf(X,Y,Z)
colorbar
colormap([1 0 0; 1 1 0; 0 1 0]
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!