Plot 2D/3D Vector with Arrow

Version 1.0.0.0 (775 octets) par Rentian Xiong
This function plots a line vector with arrow head.
42,3K téléchargements
Mise à jour 20 avr. 2005

Aucune licence

Arrowline 3-D vector plot.

vectarrow(p0,p1) plots a line vector with arrow pointing from point p0 to point p1. The function can plot both 2D and 3D vector with arrow depending on the dimension of the input

Example:
For 3D vector
p0 = [1 2 3];
p1 = [4 5 6];
vectarrow(p0,p1)

For 2D vector
p0 = [1 2];
p1 = [4 5];
vectarrow(p0,p1)

Citation pour cette source

Rentian Xiong (2024). Plot 2D/3D Vector with Arrow (https://www.mathworks.com/matlabcentral/fileexchange/7470-plot-2d-3d-vector-with-arrow), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R13
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Vector Fields dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0