开发者

matlab: how to use an array for coloring a plot

开发者 https://www.devze.com 2023-03-16 23:06 出处:网络
I have a set of 3d coordinates in 3 arrays X, Y, Z, and the temperature T at each point. I want to plot the points as a point cloud, such that each point will have a color acc开发者_开发百科ording to

I have a set of 3d coordinates in 3 arrays X, Y, Z, and the temperature T at each point. I want to plot the points as a point cloud, such that each point will have a color acc开发者_开发百科ording to it's temperature. Something similar to how you can specify colors in trisurf. How do I do that?


You can use SCATTER3 for that:

scatter3(X,Y,Z,12,T);
0

精彩评论

暂无评论...
验证码 换一张
取 消