Plot3 mark first and last coordinate set?

12 visualizaciones (últimos 30 días)
James
James el 17 de Dic. de 2015
Respondida: Star Strider el 17 de Dic. de 2015
I at moment trying to plot motion in 3d, in which it could be very helpful if I could visualize where the motion starts and end by marking those points in a different way in the plot?..
How do i do that?

Respuestas (2)

Mike Garrity
Mike Garrity el 17 de Dic. de 2015
The simplest way is to just create a second plot:
plot3(x,y,z)
hold on
plot3([x(1),x(end)],[y(1),y(end)],[z(1),z(end)],'o')
  1 comentario
James
James el 17 de Dic. de 2015
Editada: James el 17 de Dic. de 2015
what about changing the shade of the point such that the path also can be tracked?

Iniciar sesión para comentar.


Star Strider
Star Strider el 17 de Dic. de 2015
My choice would be quiver3, plotting an arrow from one point to the next. Use the gradient function on each vector to create the direction vectors quiver3 needs.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by