%   File:  temperaturePlot.m
%
%   MATLAB script to demonstrate plotting and labeling of multiple
%   y curves versus x.

load PDXbareTemp.dat;         %  read data into PDXbareTemp matrix 
month = PDXbareTemp(:,1);     %  copy first column of PDXbareTemp into month
temps = PDXbareTemp(:,2:4);   %  and remaining columns into temps

%  create plot with different symbols for each data set
plot(month,temps(:,1),'ro',month,temps(:,2),'c+',month,temps(:,3),'g-');

xlabel('Month');                      % add axis labels and plot title
ylabel('temperature (degrees F)');
title('Monthly average temperature for Portland International Airport');

legend('Low','High','Average');     %  add legends
