ic">Plot trajectories</span></p><p>
Convenience function for plotting 2D or 3D trajectory data stored in a
matrix with one row per time step.

</p>
<p>
<span style="color:red">plot2</span>(<strong>p</strong>) plots a line with coordinates taken from successive rows of <strong>p</strong>.  <strong>p</strong>
can be Nx2 or Nx3.

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

</p>
<p>
<span style="color:red">plot2</span>(<strong>p<