How plot a line segment with arrowhead?

20 次查看(过去 30 天)
Hey do I plot line segments like in this picture? And maybe could tell me someone how to do the arrows?

回答(1 个)

Image Analyst
Image Analyst 2022-12-11
编辑:Image Analyst 2022-12-11
To plot arrows, you can use annotation
To plot line segments with no arrowheads, you can use line or plot
  4 个评论
Brian LaRocca
Brian LaRocca 2024-11-27
Using annotate with data drawn using plot is awkward since the two do not share the same coordinate system.
Brian LaRocca
Brian LaRocca 2024-11-27
quiver and quiver3 get around this, but the arrows may not look that great. There should be a better solution.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Line Plots 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by