# Plotting vectors in Maple or MATLAB

• MATLAB

## Main Question or Discussion Point

I need some help plotting vectors in either Maple or MATLAB. I have a parametric space curve and I am trying to plot the tangent, normal, and bi-normal unit vectors at several points along the curve.

I have roughly 10 or 11 points at which I want to plot the tangent, normal, and binormal vectors. The vectors are in numerical form such as t(1)=[1,2,3] (when the parametric coordinate=1, the tangent vector is [1,2,3], etc.)

1. How do I plot a vector starting from a given point, say plot the vector [1,2,3] starting at point [4,5,6]?
2. How do I plot all three unit vectors at the same point along with the three unit vectors for the other points on the same plot with the original parametric curve?

This doesn't seem like it should be difficult but I never learned how. Any help is quite appreciated!

Related MATLAB, Maple, Mathematica, LaTeX News on Phys.org
AlphaQ try quiver3 in Matlab:

A three-dimensional quiver plot displays vectors with components (u,v,w) at the points (x,y,z).

quiver3(x,y,z,u,v,w) plots vectors with components (u,v,w) at the points (x,y,z). The matrices x,y,z,u,v,w must all be the same size and contain the corresponding position and vector components.

Thank you! Tried it for two vectors and it worked great. I'll try putting it all together tomorrow, I think this will work.