plot([1 2 2 1],[2 1 3 2],'r'); hold on plot([0 4 0],[0 0 4],'bo'); hold on plot([0 1],[0 2],'g',[2 4],[1 0],'g',[0 2],[4 3],'g'); axis square;