drawArrow

版本 1.0.0.0 (1.2 KB) 作者: Matthew Kelly
Draws an arrow between two points.
1.5K 次下载
更新时间 2016/1/30

查看许可证

% drawArrow(p0,p1,color)
%
% Draws a simple arrow in 2D, from p0 to p1.
%
% INPUTS:
% p0 = [x0; y0] = position of the tail
% p1 = [x1; y1] = position of the tip
% color = arrow color. Optional: default is black
% --> can be 'r','g','b','c','m','y','w', 'k' or a 1x3 color vector
%
% OUTPUTS:
% hArrow = handle to the patch object representing the arrow
%

引用格式

Matthew Kelly (2024). drawArrow (https://www.mathworks.com/matlabcentral/fileexchange/55181-drawarrow), MATLAB Central File Exchange. 检索来源 .

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

Community Treasure Hunt

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

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