arrowz(startpair,en​dpair,varargin)

Draw an easily adjustable arrow
61.0 次下载
更新时间 2016/10/12

查看许可证

ARROWZ draws an easily adjustable arrow from startpair to endpair. These
pairs should be vectors of length 2. The input of ARROWZ can vary from 2
to 6 inputs.
This arrow can be specified by a startpair, an endpair, also the thickness and color of the shaft and the arrowhead can be customized.

ARROWZ(starpair,endpair) creates an easy arrow, a line plot from
startpair to endpair, with an additional head within the direction of the
endpair. Input format is [x y],[x y].
ARROWZ(starpair,endpair,headsize) is able to adjust the size of the head.
Default size is 1.
ARROWZ(starpair,endpair,headsize,shaftsize) sets the thickness of the
shaft to the desired size. Default size is 1.

ARROWZ(starpair,endpair,headsize,shaftsize,color) specifies the color of
the total arrow. These values should be provided as RGB. Default is black
[0 0 0].

ARROWZ(starpair,endpair,headsize,shaftsize,headcolor,shaftcolor) colors
the shaft of the arrow into a seperate color. Default is black [0 0 0].

引用格式

Stefan Broxterman (2024). arrowz(startpair,endpair,varargin) (https://www.mathworks.com/matlabcentral/fileexchange/59660-arrowz-startpair-endpair-varargin), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2016b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Labels and Annotations 的更多信息
致谢

参考作品: Arrow plotter

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Version 1.1: Make a fix for sharp angle of arrowhead, when increasing shaftsize. Also, plotting shaft and arrowhead in different colors is now displayed even better.
Version 1.0: Start

1.0.0.0

Edit description
Screenshot added
Added description