MATLAB Central
    Log In
  1. Create Account
  2. Log In
  1. File Exchange
  2. Answers
  3. Newsgroup
  4. Link Exchange
  5. Blogs
  6. Trendy
  7. Cody
  8. Contest
  9. MathWorks.com
Download All

Code covered by the BSD License  

Highlights from
Summer Olympic Medals 1896-present

  • Summer Olympic Medals 1896-pr...
  • games(year)
  • getTotalMedals(medals)
  • listHosts(hosts)
  • listRanks(ranks, teams, olymp...
  • listSites(hosts, sites)
  • plotCountryGolds(medals, team... FILE: plotCountryGolds.m
  • plotCountryMedals(medals, tea... FILE: plotCountryMedals.m
  • plotTotalMedals(medals)
  • rankGSB(medals)
  • rankTotalMedals(medals)
  • record(G, S, B)
  • roman(n)
  • teamNames()
  • allSummers.m
  • summer1896.m
  • summer1900.m
  • summer1904.m
  • summer1908.m
  • summer1912.m
  • summer1916.m
  • summer1920.m
  • summer1924.m
  • summer1928.m
  • summer1932.m
  • summer1936.m
  • summer1940.m
  • summer1944.m
  • summer1948.m
  • summer1952.m
  • summer1956.m
  • summer1960.m
  • summer1964.m
  • summer1968.m
  • summer1972.m
  • summer1976.m
  • summer1980.m
  • summer1984.m
  • summer1988.m
  • summer1992.m
  • summer1996.m
  • summer2000.m
  • summer2004.m
  • summer2008.m
  • View all files
image thumbnail
from Summer Olympic Medals 1896-present by Bill McKeeman
Ways of looking at the record of summer olympic medals

games(year)
% FILE:    games.m
% PURPOSE: given the year, find the olympiad
% EXAMPLE: 
%  n = games(1896);

function olympiad = games(year)
  olympiad = floor((year-1896)/4+1);
end

Contact us at files@mathworks.com

 
  • © 1994-2012 The MathWorks, Inc.
  • Site Help
  • Patents
  • Trademarks
  • Privacy Policy
  • Preventing Piracy
  • Terms of Use
  • RSS
  • Facebook
  • Twitter
  • Featured MathWorks.com Topics:
  • New Products
  • Support
  • Documentation
  • Training
  • Webinars
  • Newsletters
  • MATLAB Trials
  • Careers