How do I plot 3D data in MATLAB?

15 次查看(过去 30 天)
John
John 2011-11-7
评论: Vito Vekic 2022-5-10
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
pointsize = 8; %adjust at will
scatter3(x(:), y(:), z(:), pointsize, T(:));

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

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by