Write a Matlab function that will: read in the spreadsheet file, accept two textual/string arguments: first metric abbreviation/acronym (for example GP) from the list above, Second metric abbreviation/acronym (for example 3P%) from the list above, finds the player (A) who has the highest/maximum value of the FIRST METRIC (if there is more than one with that value, pick the first one - lowest row number) and stores his name and corresponding FIRST METRIC value, finds the player (B) who has the lowest/minimum value of the FIRST METRIC (if there is more than one with that value, pick the first one - lowest row number) and stores his name and corresponding FIRST METRIC value, computes FIRST METRIC average for all players, finds SECOND METRIC value for both players found above, computes SECOND METRIC average for all players,
Write a Matlab function that will:
read in the spreadsheet file,
accept two textual/string arguments:
first metric abbreviation/acronym (for example GP) from the list above,
Second metric abbreviation/acronym (for example 3P%) from the list above,
finds the player (A) who has the highest/maximum value of the FIRST METRIC (if there is more than one with that value, pick the first one - lowest row number) and stores his name and corresponding FIRST METRIC value,
finds the player (B) who has the lowest/minimum value of the FIRST METRIC (if there is more than one with that value, pick the first one - lowest row number) and stores his name and corresponding FIRST METRIC value,
computes FIRST METRIC average for all players,
finds SECOND METRIC value for both players found above,
computes SECOND METRIC average for all players,
Trending now
This is a popular solution!
Step by step
Solved in 2 steps