2D scatter plot with Z-value in color
조회 수: 243 (최근 30일)
이전 댓글 표시
Hi all,
It’s a basic question but I struggle to find the answer on the Internet...
I have a matrix with x,y and z colum, representing the c-coordinate, the y-coordinate and depth (z).
I’d like to plot (x,y) but that those points show a colorscale depending on the depth value (just the point colors I don’t want an interpolation).
Can somebody help me please?
댓글 수: 1
Caoimhe Madine
2020년 3월 31일
Would anyone be able to tell me how to do this but then interpolate the colours?
채택된 답변
Walter Roberson
2013년 7월 30일
pointsize = 10;
scatter(x, y, pointsize, z);
추가 답변 (0개)
참고 항목
카테고리
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!