Unformatted text preview: % should plot each point in order. The shapes must be closed (the first % point must connect to the last point. % % % NOTE: Do NOT use the function "figure" in your code. This function causes % an error in the autograder and will result in a zero for this assignment. % function plotPolygon(x,y) hold on plot(x,y) i = length(x) x2 = [x(i),x(1)] y2 = [y(i),y(1)] plot(x2,y2) axis([(min(x)-2),(max(x)+2),(min(y)-2),(max(y)+2)])...
View Full Document
This note was uploaded on 07/06/2009 for the course CS 1371 taught by Professor Stallworth during the Fall '08 term at Georgia Tech.
- Fall '08