2

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 according to it's temperature. Something similar to how you can specify colors in trisurf. How do I do that?

olamundo
  • 23,991
  • 34
  • 108
  • 149
  • 2
    the answers to a similar question should give you some ideas: http://stackoverflow.com/questions/1809881/how-to-plot-a-3d-plot-in-matlab – Amro Jul 04 '11 at 13:36

1 Answers1

3

You can use SCATTER3 for that:

scatter3(X,Y,Z,12,T);
Jonas
  • 74,690
  • 10
  • 137
  • 177