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

Antworten (2)

Walter Roberson
Walter Roberson am 7 Nov. 2011

1 Stimme

pointsize = 8; %adjust at will
scatter3(x(:), y(:), z(:), pointsize, T(:));
Yi Zhang
Yi Zhang am 13 Apr. 2021

1 Stimme

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

2 Kommentare

Bruno Credidio
Bruno Credidio am 28 Mär. 2022
Why did you just copy Walter Roberson's answer?
Vito Vekic
Vito Vekic am 10 Mai 2022
Based

Melden Sie sich an, um zu kommentieren.

Tags

Gefragt:

am 7 Nov. 2011

Kommentiert:

am 10 Mai 2022

Community Treasure Hunt

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

Start Hunting!

Translated by