# Math Help - Matlab Help! 3 sets of coordinates

1. ## Matlab Help! 3 sets of coordinates

I have worked through a 1st order Runge-Kutta problem, and have ended up with 3 sets of coordinates which I need to plot in a graph on matlab,

(x1r(i),y1r(i))
(x2r(i),y2r(i))
(x3r(i),y3r(i))

I have a bit baffled on how to do this, any help would be great!

Thanks,
Gizmo

2. It is hard to tell what format your data is in but something along the lines of this will work.

Code:
plot([x1r(i),x2r(i),x3r(i)],[y1r(i),y2r(i),y3r(i)])
Post up you code for better advice.

Elbarto

3. Originally Posted by gizmo
I have worked through a 1st order Runge-Kutta problem, and have ended up with 3 sets of coordinates which I need to plot in a graph on matlab,

(x1r(i),y1r(i))
(x2r(i),y2r(i))
(x3r(i),y3r(i))

I have a bit baffled on how to do this, any help would be great!

Thanks,
Gizmo
Not enough information, for instance what is "i"

CB