MATLAB Answers

How do I plot a line that has an arrow on the end of it, in 2-D and 3-D?

889 views (last 30 days)
I would like to have an example that shows how to draw objects with the LINE command.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Jul 2017
There are two files (arrow.m and arrow3.m) that will plot a line with an arrow on the end of it. These files are available on MATLAB Central:
To find these MATLAB files, type their respective names in the Search field.
You may also be interested in the QUIVER and QUIVER3 commands. These functions create 2D and 3D quiver plots. For more information on this function, type:
help quiver
help quiver3
at the MATLAB Command Prompt. If you have installed the documentation, type
doc quiver
doc quiver3
to see the documentation for this function. If you do not have the documentation installed, you can find it here:

  0 Comments

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!