So I want to create a loop in MATLAB where I can retrieve the x,y pairs.
So far, I have two arrays:
x = [x1 x2 x2 x1 x1];
y = [y1 y1 y2 y2 y1];
I would like to create a for loop where I can retrieve pairs (x1,y1), then (x2, y1), then (x2, y2), (x1, y2), and lastly (x1,y1) once again.