Question: MATLAB Code has already been provided to define a function named examstatscalculator that receives a matrix of student test scores for three different exams into

MATLAB Code has already been provided to define a function named examstatscalculatorMATLAB

Code has already been provided to define a function named examstatscalculator that receives a matrix of student test scores for three different exams into the input variable examscores with scores for exams 1, 2, and 3 stored in the first, second, and third columns respectively. The position of each individual student's score is consistent through the three columns (e.g. the score for student number 5 for each of the three exams makes up the fitth row of the matrix). Add code to this function to do the following: 1. Compute the mean test score for each student (i.e. the average of the studen's three scores) and add these values as a fourth column to the matrix. Assign this new four column matrix to the output variable examstatistics. 2. Use the appropriate bull-in function to compute the mean score for each exam as well as the mean for all three exams and append these four values to the bottom of the exanstatistics matrix variable such that each element in this bottom row is the mean of the scores in that column. 3. Use the appropriate built-in function to compute the maximum score for each exam as well as the maximum of the students' average exam scores and append these four values to the botlom of the exanstatistics matrix variable such that each element in this new botlom row is the maximum of the scores in that column. 4. Use the appropriate built-in function to compute the standard deviation for each exam as well as the standard deviation of the students' average exam scores and append these four values to the bottom of the examstatistics matrix variable such that each element in this new bottom row is the maximum of the scores in that column. In summary your code should append one column and three rows to the matrix of exam scores assigned to the input variable examscores. The appended column stores the average of the three exams scores for each student. The first appended row is the mean score for each exam. The second appended row is the maximum score, and the third appended row is the standard deviation. Solve this problem using vectorized code (i.e. do not use a loop in your solution). Note the variable examscores is assigned its values as a function input. Do not overwrite these values in your code. Function function examstatistics = examstatscalculator(examscores) Enter commands for the function here

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!