Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

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

Plot Vectors

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,'-')

Introduced before R2006a

Was this topic helpful?