% 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
%
Citar como
Matthew Kelly (2024). drawArrow (https://www.mathworks.com/matlabcentral/fileexchange/55181-drawarrow), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2015a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Más información sobre Polygons en Help Center y MATLAB Answers.
Etiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |