3D space and coordinate reference systems
Mostrar comentarios más antiguos
Hi, I would like to plot a graph with reference system on it. I mean, a triad of three axes. How can I plot a vector? I should get a line, using three numbers (direction cosines).
Any ideas would be very much appreciated.
Thanks, Marco
Respuestas (4)
Honglei Chen
el 23 de Mzo. de 2012
You can use quiver3, e.g.
quiver3(zeros(3,1),zeros(3,1),zeros(3,1),[1;0;0],[0;1;0],[0;0;1])
For details, see
doc quiver3
Ocram
el 23 de Mzo. de 2012
0 votos
Honglei Chen
el 23 de Mzo. de 2012
Then you can just use plot3
doc plot3
George Abrahams
el 14 de Dic. de 2023
Hi Ocram. You can use my plotframe function on File Exchange, with the name-value argument ShowArrowHead='off', as in:
plotframe( ShowArrowHead='off' )
axis equal
Categorías
Más información sobre Vector Fields 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!