How can i plot a colormap (2d)
조회 수: 20 (최근 30일)
이전 댓글 표시
I have a matrix where 1st column is x, second y and third z
I'm trying to plot a surface with z coordinate to be the color. can anyone help me?
thank you in advance George
댓글 수: 0
채택된 답변
Image Analyst
2014년 5월 30일
Try griddedInterpolant() to make a solid array of z values at all x and y locations. Then use surf(), colormap(), and colorbar().
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Color and Styling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!