Question: Write a MATLAB program in a script file that calculates the average and the standard deviation of a list of grades as well as the

Write a MATLAB program in a script file that calculates the average and the standard deviation of a list of grades as well as the number of grades on the list. The program asks the user (input command) to enter the grades as elements of a vector. The program then calculates the required quantities using MATLABs built-in functions length, mean, and std. The results are displayed in the Command Window in the following format:

There are XX grades. where XX is the numerical value.

The average grade is XX. where XX is the numerical value rounded to the nearest tenth.

The standard deviation is XX. where XX is the numerical value rounded to the nearest tenth.

Execute the program and enter the following grades: 93, 77, 51, 62, 99, 41, 82, 77, 71, 68, 100, 46, 78, 80, and 83.

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!