Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started