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

allSummers.m
% FILE:    allSummers.m
% PURPOSE: load all summer olympic data into global workspace
% EXAMPLE:
%  allSummers
% NOTE:  must be run before all other functions.

teamobj = teamNames();           % team/name object
team = @teamobj.enter;           % given name, get table index

medals(1,1) = record(0,0,0);
findSummers = dir('summer*.m');  % everything in directory
for name = {findSummers.name}
  eval(name{1}(1:end-2));        % fill medals array
end

Contact us at files@mathworks.com