% Matlab commands to manipulate the array and find the required results
% a. Finds the maximum batting average for each year(across
columns) in bestAverageYear(1,:)
% and return the index of the player who achieved it in
bestAverageYear(2,:)
[bestAverageYear(1,:),bestAverageYear(2,:)] =
max(BattingStatus);
% display the result
disp(bestAverageYear);
%b. Finds the highest batting average over all the years
% max(BattingStatus) returns the maximum value column wise
and
% max(max(BattingStatus)) returns the maximum value among the
values
% returned by max(BattingStatus)
bestAverage = max(max(BattingStatus));
% display the result
disp(bestAverage);
%c. Finds the mean Batting average for all players for 4th
year
fourthYearAverage = mean(BattingStatus(:,4));
% display the result
disp(fourthYearAverage);
%d. Finds the minimum batting average for each year(across
columns) in worstAverageYear(1,:)
% and return the index of the player who achieved it in
worstAverageYear(2,:)
[worstAverageYear(1,:),worstAverageYear(2,:)] =
min(BattingStatus);
% display the result
disp(worstAverageYear);
%e. Finds the lowest batting average over all the years
% min(BattingStatus) returns the minimum value column wise
and
% min(min(BattingStatus)) returns the minimum value among the
values
% returned by min(BattingStatus)
worstAverage = min(min(BattingStatus));
% display the result
disp(worstAverage);
solve with Matlab! many thankss Also this is what the file Baseball look like, Its a...