Question: Code has already been provided to define a function named examstats that receives column vectors of student test scores for three different exams as inputs
Code has already been provided to define a function named examstats that receives column vectors of student test scores for three different exams as inputs into three variables: examscores, examscores, and examscores. The position of each individual student's score is consistent through the three input vectors eg the score for student number is the fifth element in each of these vectors Add code to this function to do the following:
Compute the mean test score for each student ie the average of the student's three scores and assign these values as a column vector to the output variable named studentMeans.
Use the appropriate builtin function to compute the mean score for each exam and assign these three values to a row vector named exammeans with the mean scores for exams and as the first, second, and third elements respectively.
Use the appropriate builtin function to compute the standard deviation for each exam and assign these three values to a row vector named examstDev with the results for exams and as the first, second, and third elements respectively.
Solve this problem using vectorized code ie do not use a loop in your solution Note the variables examscores, examScores, and examscores are assigned values as function inputs. Do not overwrite these values in your code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
