Contents

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

plotv([-.4 0.7 .2; -0.5 .1 0.5],'-')
Was this topic helpful?