%%%%%%%%%%%%%%%%%%%%% Polygon Plot %%%%%%%%%%%%%%%%%%%%% % % PLOTPLY % Usage: PLOTPOLY(poly,col) % Inputs: poly - a vector of complex numbers who components are the vertices % of the ploygon to be plotted % col - color the sides function plotpoly(poly,col) n = length(poly); polyp = [poly(:);poly(1)]; for i=1:n seg = [polyp(i), polyp(i+1)]; w = geoseg(seg); plot(real(w),imag(w),['-',col]); drawnow; end