You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
% 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
%
Cite As
Matthew Kelly (2026). drawArrow (https://www.mathworks.com/matlabcentral/fileexchange/55181-drawarrow), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (1.24 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
