Question
4. Assume that you were hired by the state of Georgia to do a statistics analysis for the grades of a state conducted test. There
4. Assume that you were hired by the state of Georgia to do a statistics analysis for the grades of a state conducted test. There are 100,000 students taking this test every year. The state provided you with the grades in a form of a row vector called: Grades.mat and they also provided you with Matlab software. Use this grade row vector and Matlab software and write a program that can do the following: Hint: the function sum() may be handy to use. The Grades.mat file is posted on Folio in the labs folder. (Lecture 7 slides, Problem 7 might give a hint!) a. load Grades.mat to Matlab (Make sure it is in your current folder). b. Find the number of students that scored 90 or higher? c. Find the number of students that scored between 80 and 89 (including 80)? d. Find the number of students that scored between 70 and 79 (including 70)? e. Find the number of students that scored between 60 and 69 (including 60)? f. Find the number of students that scored between 50 and 59 (including 50)? g. Find the number of students that scored between 40 and 49 (including 40)? h. Find the number of students that scored between 30 and 39 (including 30)? i. Find the number of students that scored between 20 and 29 (including 20)? j. Find the number of students that scored between 10 and 19 (including 10)? k. Find the number of students that scored between 0 and 9 (including 0)? l. Put all the results of part (k) till part (b) in a row vector called gHisto. Put part k first, and go all the way to part b. m. Make sure that all the results (b to k) will add up to 100,000? (do sum on gHisto) n. Define a variable called gradeRange = [5, 15, 25, 35, 45, 55, 65, 75, 85, 95]. o. Finally, plot gradeRange vs. gHisto. (Use plot command, then replace with bar) p. Label all axis and titles appropriately.
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