Question: Normalize grades Write a function called normalizeGrades that receives a row array of test scores of arbitrary length and positive values, and produces twa outputs:

Normalize grades
Write a function called normalizeGrades that receives a row array of test scores of arbitrary length and positive values, and produces twa outputs:
A row array array containing the grades normalized to a linear scale from 0 to 100(i.e. grades are normalized if the maximum gra equals 100). Hint: Use the internal function max.
The average of the normalized grades. Hint: Use the internal function mean.
Restriction: Loops may not be used. For example, following code:
scores =[90,45,76,21,85,97,91,84,79,67];
[normscores, average]=normalizeGrades(scores)
produces:
normscores =[92.78,46.39,78.35,21.65,87.63,100,93.81,86.6,81.44,69.07]
average =75.77
Function (8
Save
Reset
MATLAB Documentati
Normalize grades Write a function called

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!