color as height
조회 수: 1 (최근 30일)
이전 댓글 표시
I have a two dimensional plot of points on the plane. However, to every point there is also one real positive number assigned. One way to plot this additional information would be as a 3-dimensional plot, but I want to plot the points in the plane and to display their height as a color (for example red - high and blue - low). Does someone know how I can do that?
댓글 수: 0
채택된 답변
Bjorn Gustavsson
2011년 9월 7일
Depending on exactly what you want you could use "scatter" or "pcolor". See the help for those to determine which fits your wishes better - or find pointers to other functions.
HTH
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!