How do I plot 3D data in MATLAB?

My data is of the format (x,y,z,T), where x,y and z are axes indicating a point and T is the colour value at the specified point.
Thanks

답변 (2개)

Walter Roberson
Walter Roberson 2011년 11월 7일

1 개 추천

pointsize = 8; %adjust at will
scatter3(x(:), y(:), z(:), pointsize, T(:));
Yi Zhang
Yi Zhang 2021년 4월 13일

1 개 추천

pointsize = 8; %adjust at will
scatter3(x(:), y(:), z(:), pointsize, T(:));

댓글 수: 2

Bruno Credidio
Bruno Credidio 2022년 3월 28일
Why did you just copy Walter Roberson's answer?
Vito Vekic
Vito Vekic 2022년 5월 10일
Based

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Scatter Plots에 대해 자세히 알아보기

태그

질문:

2011년 11월 7일

댓글:

2022년 5월 10일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by