Plotting vectors in Maple or MATLAB

Click For Summary
SUMMARY

This discussion focuses on plotting tangent, normal, and binormal unit vectors in MATLAB using the quiver3 function. The user seeks to visualize these vectors at multiple points along a parametric space curve, specifically starting from given coordinates. The quiver3 function allows for the plotting of 3D vectors by specifying their components and starting points, ensuring that all matrices for position and vector components are of the same size. The user successfully tested the function for two vectors and plans to integrate all elements in their final plot.

PREREQUISITES
  • Understanding of parametric space curves
  • Familiarity with MATLAB programming
  • Knowledge of vector components in three-dimensional space
  • Experience with MATLAB's plotting functions, specifically quiver3
NEXT STEPS
  • Research the MATLAB quiver3 function for advanced plotting techniques
  • Explore how to customize vector colors and styles in MATLAB plots
  • Learn about creating parametric plots in MATLAB for better visualization
  • Investigate the mathematical concepts behind tangent, normal, and binormal vectors
USEFUL FOR

This discussion is beneficial for MATLAB users, mathematicians, and engineers who need to visualize vector fields and parametric curves in three-dimensional space.

[TDH]AlphaQ
Messages
2
Reaction score
0
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!
 
Physics 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.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 10 ·
Replies
10
Views
3K