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 个)

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(:));

类别

帮助中心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