Question: MATLAB The template will create a data matrix called grades. In this matrix, each row is the scores for one student, and each column is

MATLAB The template will create a data matrix called grades. In this matrix, each row is the scores for one student, and each column is the scores for the whole class on one test. Perform the following operations. Store the results in variables called prob4a, prob4b, etc.

a) Create a column vector containing each student's total points by summing the matrix by rows.

b) Create a row vector containing the average score on each test by averaging the matrix by columns.

c) Create a column vector with each student's highest test score (use the max function)

d) Create a row vector with the low score on each test (use the min function)

e) Calculate the standard deviation over all tests and all students (in other words, the standard deviation of the entire matrix)

Note: follow this example from the MATLAB help:

S = std(A,w,'all') computes the standard deviation over all elements of A when w is either 0 or 1. This syntax is valid for MATLAB versions R2018b and later.

The tolerance for this problem has been set wide enough to accept w = 0 or w = 1

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!