Adding points onto a 3D figure in a GUI
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have a 3D plot in a GUI showing position in 3 dimensions and want to display the points at which the velocity of the movement is zero. The line has already been plotted and the values for the targets have already been found but how do I add single points on to this figure?
0 comentarios
Respuestas (3)
Matt Kindig
el 22 de Abr. de 2013
Editada: Matt Kindig
el 22 de Abr. de 2013
Turn 'hold on', and then call plot3() to plot the points.
0 comentarios
Richard
el 22 de Abr. de 2013
2 comentarios
Walter Roberson
el 22 de Abr. de 2013
Please post your response as a Comment instead of an Answer. You can click on "Comment on this Answer" to do that.
Walter Roberson
el 22 de Abr. de 2013
You can use scatter3(), or you can use plot3() with a marker specifier and no line specifier
plot3(X(:), Y(:), Z(:), 'o')
1 comentario
Jawahir
el 26 de Jun. de 2013
Hi Walter,
I'm facing quite similar problems. I've tried the plot3 function, but when the marker are displayed, the current 3D plot will be gone. Note that I've already run hold on.
Ver también
Categorías
Más información sobre Graphics Objects en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!