How do I plot a line that has an arrow on the end of it, in 2-D and 3-D?
105 views (last 30 days)
Show older comments
MathWorks Support Team
on 23 Aug 2013
Edited: MathWorks Support Team
on 17 Nov 2021
I would like to have an example that shows how to draw objects with the LINE command.
Accepted Answer
MathWorks Support Team
on 16 Nov 2021
Edited: MathWorks Support Team
on 17 Nov 2021
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
More Answers (0)
See Also
Categories
Find more on Vector Fields in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!