plotvec
Plot vectors with different colors
Syntax
plotvec(X,C,M)
Description
plotvec(X,C,M)
takes these inputs,
X | Matrix of (column) vectors |
C | Row vector of color coordinates |
M | Marker (default = |
and plots each i
th vector in X
with a marker
M
, using the i
th value in C
as the
color coordinate.
plotvec(X)
only takes a matrix X
and plots each
i
th vector in X
with marker '+'
using
the index i
as the color coordinate.
Examples
Plot Vectors with Different Colors
This example shows how to plot four 2-element vectors.
x = [ 0 1 0.5 0.7 ; ...
-1 2 0.5 0.1];
c = [1 2 3 4];
plotvec(x,c)
Version History
Introduced before R2006a