The file “examScores.mat” contains students\' scores from one exam. Student’s sc
ID: 3713102 • Letter: T
Question
The file “examScores.mat” contains students' scores from one exam. Student’s scores are given in a matrix named StGrades. The row ?? of StGrades represents student ??, and column ?? represents question ?? in the exam. Therefore, element (??,??) in the StGrades represents the grade of student ?? in question ??. Find and report the solution to the following questions using MatLab.
a) How many students did attend the exam?
b) How many questions were there in the exam?
c) What is the student 10 total score in this exam?
d) What is the class average in question 3?
e) What is the class standard deviation in question 3?
f) What is the class average (of total scores) in this exam?
g) What is the class standard deviation (of total scores) in this exam?
h) Assuming the maximum attainable score in this exam was 100, how many students received total score of 90 and above?
i) How many students did receive total score between (and including) 75 and (not including) 90?
Explanation / Answer
let us say the matrix is named A
1)
2)
3)
Asum = sum(A,1)
disp(Asum[10])
4)
5)
std = std2(A)
6)
Asum = sum(A,1)
avg = sum(Asum)/length(Asum)
7)
Asum = sum(A,1)
Sstd = std2(Asum)
8)
Asum = sum(A,1)
if(Asum[i]>=90)
disp("the %d th student",&i)
end
end
9)
Asum = sum(A,1)
if(Asum[i]>=75 && Asum[i]<90)
disp("the %d th student",&i)
end
end
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.