% my_script.m   Example of a script file
%
% Comments at start print in help command, (down to first blank line).  
% Just put in commands as you would at prompt
% Be careful not to use a filename that is already
%  a Matlab¨ command or function name.
% Execute script by typing name without .m

% Create an array of student test scores
scores = [96, 85, 93; 23, 56, 1]; % row 1 exam 1, row 2 exam 2

% Calculate average for each exam
display('Ave test scores')
m = mean(scores')'
[max_score, max_index] = max(scores)
[second_max, second_ind]=max(max_score)
max_index(second_ind)
