Documentation

plotv

Plot vectors as lines from origin

Syntax

plotv(M,T)

Description

plotv(M,T) takes two inputs,

M

R-by-Q matrix of Q column vectors with R elements

T

The line plotting type (optional; default = '-')

and plots the column vectors of M.

R must be 2 or greater. If R is greater than 2, only the first two rows of M are used for the plot.

Examples

This example shows how to plot three 2-element vectors.

M = [-0.4 0.7 0.2 ; ...
     -0.5 0.1 0.5];
plotv(M,'-')

Was this topic helpful?