quiver_tri(x,y,u,v,varargin)
Plot velocity vector fields with filled arrow head.
This function is not optimized for speed. Do not use in loops
%QUIVER_TRI Quiver plot with filled triangles
% QUIVER_TRI(x,y,u,v) plots velocity vectors with filled triangle arrows.
% Contrary to QUIVER, QUIVER_TRI does not scale vectors before plotting
% them. Vectors will be plotted with the same spacing and magnitude as
% they are provided. Default head arrow size is 20% of the median
% magnitude and default head angle is 22.5 degrees.
%
% QUIVER_TRI(x,y,u,v,headsize) plots velocity vectors specifying the
% headsize (same units as u and v).
%
% QUIVER_TRI(x,y,u,v,headsize,headangle) plots velocity vectors
% specifying the head size (same units as u and v) and the head angle
% amplitude (in degrees).
%
% QUIVER_TRI(x,y,u,v,headsize,headangle,width) same as before, plus
% setting of the quiver body width
%
% QUIVER_TRI(x,y,u,v,headsize,headangle,width,col) same as before, plus
% setting of the color
%
% See also QUIVER.
Cite As
Alessandro Masullo (2026). quiver_tri(x,y,u,v,varargin) (https://uk.mathworks.com/matlabcentral/fileexchange/53596-quiver_tri-x-y-u-v-varargin), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Vector Fields >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Fix color issue |
