バージョン (20.2 KB) 作成者: Erik Johnson
Draw a line with an arrowhead.
ダウンロード: 100.5K
更新 2023/5/3


編集メモ: This file was selected as MATLAB Central Pick of the Week

Popular File 2012 2013

ARROW (5/02/2023) Draw a line with an arrowhead.
ARROW(Start,Stop) draws a line with an arrow from Start to Stop (points should be vectors of length 2 or 3, or matrices with 2 or 3 columns), and returns the graphics handle of the arrow(s). By itself, ARROW will use the mouse to allow selection.
ARROW DEMO & ARROW DEMO2 show 3-D & 2-D demos of the capabilities of ARROW.
ARROW PROPERTIES shows the properties that can be set (length, base angle, tip angle, width, which ends have arrowheads, etc.)


Erik Johnson (2024). arrow (, MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2022b
Windows macOS Linux
Help Center および MATLAB AnswersLabels and Annotations についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート

Forgot to update the version date.

Add ability to use arrow(...,'Parent',axis handle)

Change output from handle double to graphics objects. Add identifiers to warning and error messages. Temporarily disable pan/zoom/rotate3d to use click-to-draw mode.

Added a 'Color' property (that sets both 'EdgeColor' and 'FaceColor' for arrows drawn with patch objects [the default]) and documentation of how to use it.

Updated for HG2 (R2014b and later)

actually update the file (not just the description); correct view on demo

Replace "eval('trycmd','catchcmd')" with "try, trycmd; catch, catchcmd; end;", which break's compatibility with MATLAB 5 but improves compliance with newer versions.