image thumbnail
from Summer Olympic Medals 1896-present by Bill McKeeman
Ways of looking at the record of summer olympic medals

plotTotalMedals(medals)
% FILE:    plotTotalMedals.m
% PURPOSE: how many medals were awarded over all time?
% EXAMPLE:
%    requires allSummers() to make medals(,)
%    plotTotalMedals(medals);

function plotTotalMedals(medals)
  meds = getTotalMedals(medals);       % y values
  ol = size(medals,2);                 % lastest year we have data
  x=1896:4:(1896+(ol-1)*4);            % x axis 

  plot(x,meds, 'x');
  title('Total medals awarded in each Summer Olympics');
end

Contact us at files@mathworks.com