% Script to plot the state of Virginia
% Data from USGS (from GIS shapefile)
%
% Trani Spring 2011

clear

load virginia  % loads the virginia.mat file

% Detect number of polygons from Shape file
npoints = length (virginia);

% start the plot using a loop since many polygons are to be plotted in the
% same figure 
hold on
for i=1:npoints
    plot(virginia(i).X,virginia(i).Y)
end

% Add labels
xlabel('Longitude (deg)')
ylabel('Latitude (deg)')
grid