compassplot
Syntax
Description
Vector and Matrix Data
compassplot( plots arrows
(vectors) originating at the origin in polar coordinates. The theta,rho)theta
values control the arrow directions in radians. The rho values control
the arrow magnitudes as radius values.
To plot one set of arrows, specify
thetaandrhoas vectors of equal length.To plot multiple sets of arrows, specify
thetaorrhoas a matrix, or both as matrices of the same size.
Table Data
compassplot(
plots the variables tbl,thetavar,rhovar)thetavar and rhovar from the
table tbl. To plot one set of arrows, specify one variable each for
thetavar and rhovar. To plot multiple sets of
arrows, specify multiple variables for thetavar,
rhovar, or both.
Additional Options
compassplot( displays
the compass plot in the target polar axes pax,___)pax. Specify the polar axes
as the first argument in any of the previous syntaxes.
compassplot(___,
specifies Name=Value)PolarCompassPlot properties using one or more name-value
arguments. Specify the name-value arguments after all other input arguments. For a list of
properties, see PolarCompassPlot Properties.
cp = compassplot(___) returns the
PolarCompassPlot object. Use cp to get and set
properties of the plot after creating it. For a list of properties, see PolarCompassPlot Properties.
Examples
Input Arguments
Name-Value Arguments
Version History
Introduced in R2024b








