Mathematics
Mathematics, 17.04.2021 16:10, prettygirl321490

A professor will assign grades to his class as follows: any score more than 15 points above average will receive an A, from 0-15 points (inclusive) above average will receive a B, from 0-15 points below average will receive a C, and more than 15 points below average will receive a D. Write a Matlab function called grades .m which will take a single input, which is an array of grades, and return 4 outputs. The first output is the number of A's in the class, the second is the number of B's, the third is the number of C's, and the fourth is the number of D's. As a check, the Matlab commands t=l:140; [A, B,C, D]=grades(75+25*cos(t) .*sin(3*t)) should give 20 A's, 57 B's. 38 C's, and 25 D's. (Hopefully the grade distribution at the end of this course will be somewhat better!) Hints: Remember that the Matlab mean command will calculate the average of an array of numbers. You will need a loop with a nested conditional to do the counting.

answer
Answers: 3

Other questions on the subject: Mathematics

image
Mathematics, 21.06.2019 21:30, tanabugg
Extra points! find the missing dimension! need asap
Answers: 2
image
Mathematics, 22.06.2019 00:00, johnsonkia873
Which statement best describes how to determine whether f(x) = x squared- x +8 is an even function ?
Answers: 2
image
Mathematics, 22.06.2019 01:30, imran2k13
Adriana had a garden where he measured the height of a corn plant. what. on the first day, it was 145 cm tall. after 2 weeks is grew by 23 cm. what is the height of the corn plant
Answers: 1
image
Mathematics, 22.06.2019 03:20, lindselu
Which situation could best be represented by this linear equation? 24x + 38y = 520 > if x represents the number of bracelets and y represents the number of rings, there were 24 more bracelets sold than rings. the total sales were $520. if x represents the number of bracelets and y represents the number of rings, there were 38 more bracelets sold than rings. the total sales were $520. if x represents the number of bracelets sold at $24 each and y represents the number of rings sold at $38 each, the total sales were $520 if x represents the number of bracelets and y represents the number of rings, there were 520 bracelets and rings sold. bracelets were $24, and rings were $38. e
Answers: 1
Do you know the correct answer?
A professor will assign grades to his class as follows: any score more than 15 points above average...

Questions in other subjects:

Konu
Mathematics, 16.09.2020 01:01
Konu
Mathematics, 16.09.2020 01:01
Konu
Mathematics, 16.09.2020 01:01
Konu
Mathematics, 16.09.2020 01:01
Konu
Mathematics, 16.09.2020 01:01
Konu
Mathematics, 16.09.2020 01:01
Konu
Mathematics, 16.09.2020 01:01
Konu
Mathematics, 16.09.2020 01:01
Konu
Mathematics, 16.09.2020 01:01
Konu
Social Studies, 16.09.2020 01:01