function [handle] = plotResult(boundaries, col) %PLOTRESULT Plots a polygons with specified colors % Plots the polygons given in 'boundaries' with the colors specified in % 'col' % plots fillded polygons for each state for i=1:length(col) fill(boundaries{i}(:,1), boundaries{i}(:,2), col(i)); if (i==1) hold on; end end % sets a suitable colormap colormap(flipud(colormap('winter'))); colorbar hold off; end