M-File Help: plot2 View code for plot2

plot2

Plot trajectories

Convenience function for plotting 2D or 3D trajectory data stored in a matrix with one row per time step.

plot2(p) plots a line with coordinates taken from successive rows of p. p can be Nx2 or Nx3.

If p has three dimensions, ie. Nx2xM or Nx3xM then the M trajectories are overlaid in the one plot.

plot2(p, ls) as above but the line style arguments ls are passed to plot.

See also

mplot, plot


 

© 1990-2014 Peter Corke.