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 coordinate.
M - Marker, default = '+'.
and plots each ith vector in X with a marker M and using the ith value in C as the color coordinate.
plotvec(X) only takes a matrix X and plots each ith vector in X with marker '+' using the index i as the color coordinate.
Examples
x = [0 1 0.5 0.7; -1 2 0.5 0.1];
c = [1 2 3 4];
plotvec(x,c)
[ Previous | Help Desk | Next ]