The Clemson Carolina football game is the second longest un
The Clemson - Carolina football game is the second longest uninterrupted series in college football, having been played every year since 1909. Assume the last six years are given in the matrix shown below, listed as Year, Clemson points. USC points. SCFOOTBALL = [2007, 23, 21; 2008, 31, 14; 2009, 17, 34; 2010, 7, 29; 2011, 13, 34; 2012, 17, 27]; Create a proper plot of the data, showing the year on the abscissa and the points scored by each team on the ordinate. The gridlines. Axis limits, axis labels, title, color and size of markers must match exactly to the graph shown The legend should appear in the same location as shown. Clemson is shown by black circles, size 12. USC is shown by red asterisks, size 12. The title is shown in BOLD, blue, size 16 font. The figure background should be white.
Solution
SCFOOTBALL=[2007,23,21;2008,31,14;2009,17,34;2010,7,29;2011,13,34;2012,17,27];
set( gcf,\'color\',\'w\');
plot( SCFOOTBALL(:,1), SCFOOTBALL(:,2),\'bo\',\'MarkerSize\',12);
hold on
plot( SCFOOTBALL(:,1), SCFOOTBALL(:,3),\'r*\',\'MarkerSize\',12);
grid on
xlim([2006 2013]);
ylim([0 40]);
xlabel(\'Year of Game\');
ylabel(\'Points Scored\');
legend(\'CU\',\'USC\');
title(\'The Battle of the Palmetto State\',\'FontSize\',16,\'Color\',\'b\',\'FontWeight\',\'bold\');
