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: exam1scores, exam2scores, and exam3scores. The position of each individual student's score is consistent through the three input vectors (e.g. the score for student number 5 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 (i.e. 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 built-in 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 1,2, and 3 as the first, second, and third elements respectively.
Use the appropriate built-in 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 1,2, and 3 as the first, second, and third elements respectively.
Solve this problem using vectorized code (i.e. do not use a loop in your solution). Note the variables exam1scores, exam2Scores, and exam3scores are assigned values as function inputs. Do not overwrite these values in your code.
 Code has already been provided to define a function named examstats

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 Databases Questions!