Question
Download the file lab6.xlsx. The data in lab6.xlsx represents the grade of students in a class. Copy the data in lab6.xlsx and assign it in
Download the file lab6.xlsx. The data in lab6.xlsx represents the grade of students in a class. Copy the data in lab6.xlsx and assign it in MATLAB to a variable gradenum. If the grade scale is such that A=90-100, B = 80-90, C = 70-79, and any number below 70 is F. Use gradenum to do the following
92 | 89 | 68 | 88 | 80 |
78 | 96 | 78 | 100 | 69 |
98 | 58 | 87 | 77 | 89 |
45 | 78 | 45 | 77 | 96 |
43 | 88 | 87 | 44 | 98 |
23 | 56 | 89 | 100 | 95 |
78 | 52 | 78 | 78 | 97 |
87 | 45 | 96 | 85 | 45 |
67 | 87 | 98 | 82 | 78 |
56 | 85 | 96 | 80 | 78 |
98 | 98 | 98 | 80 | 72 |
78 | 48 | 88 | 87 | 76 |
87 | 52 | 55 | 85 | 72 |
76 | 48 | 78 | 82 | 79 |
67 | 78 | 89 | 89 | 76 |
78 | 92 | 98 | 87 | 75 |
89 | 95 | 45 | 85 | 74 |
90 | 87 | 87 | 89 | 71 |
90 | 58 | 65 | 85 | 89 |
98 | 96 | 68 | 87 | 95 |
The number of students who got 78 (call it g78): Your commands:
The number of students who got A (call it gA):
Your commands:
Write all the commands in MATLAB that you will use to extract all the A values into one column vector. Call the vector GA.
What is GA(12
The number of students who got A or C:
Write all the commands in MATLAB that you will use to extract all the A and C values into one column vector. Call the vector GAorC.
What is GAorC(33)
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