colouring dots in scatter3 according z-value
이전 댓글 표시
plot3 gives colours according to height above the xy-plane. Is that possible with scatter3 too?
채택된 답변
추가 답변 (2개)
Weia Reinboud
2017년 9월 18일
2 개 추천
댓글 수: 1
José-Luis
2017년 9월 18일
You can specify the color as a linear function of z:
x = 1:10;
z = fliplr(x);
scatter3(x,x,z,2,z)
카테고리
도움말 센터 및 File Exchange에서 White에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!