Question about velocity graphs with quiver3
Mostrar comentarios más antiguos
Hey, Im trying to use quiver3 to plot some vectors and it wont start at the right position! I dont want the vector to start at the origin, I want it to start at my data points and point TOWARDS the origin. Heres what I have...
figure(1)
quiver3(100,150,-500,0,0,0,'r')
xlim([-200 200]);
ylim([-200 200]);
zlim([-1000 0]);
drawnow
Now when I reverse the 0s so they are in the front, it works fine except for it points from the origin to my point. I want it the other way around! When I have the points first, nothing appears. Please help thanks!
Respuesta aceptada
Más respuestas (1)
David Sanchez
el 24 de Jun. de 2013
Did you read the help?
help quiver3
with your code, you are setting the velocities to 0, no doubt you do not get anything. The 4th, 5th and 6th elements have to be the velocities, if you set them to 0, nothing shows up.
This may be of help:
quiver3(100,150,-500,-100,-150,500)
hold on
plot3(100,150,-500,'*', 'MarkerSize',10)
plot3(0,0,0,'r*', 'MarkerSize',10)
hold off
1 comentario
JP
el 24 de Jun. de 2013
Categorías
Más información sobre General Applications 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!