connecting points in scatter3 plot?
Mostrar comentarios más antiguos
hi there. I am trying to connect points in a scatter3 plot. i tried using line, but that is applicable for 2D plot. but the data contains 3 dimensions. can anyone please tell me which command should i use after the line to connect points? thanks in advance.
scatter3(objlist.r_c(1,1,:),objlist.r_c(2,1,:),objlist.r_c(3,1,:))
Respuesta aceptada
Más respuestas (3)
Matt Tearle
el 4 de Nov. de 2014
Editada: Matt Tearle
el 4 de Nov. de 2014
What about plot3?
plot3(rand(5,1),rand(5,1),rand(5,1),'o-')
But I also don't understand what the problem is with line. This does the same as plot3:
x = rand(5,1);
y = rand(5,1);
z = rand(5,1);
scatter3(x,y,z)
line(x,y,z)
Sanjoy Basak
el 4 de Nov. de 2014
0 votos
Sanjoy Basak
el 4 de Nov. de 2014
0 votos
Categorías
Más información sobre Spline Postprocessing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!