function plot2d(x) first = x(1,:)'; second = x(2,:)'; plot(first, second,'ro',first,second,'g-'); axis([-10 10 -10 10]) axis('square')