G68 83 61 70 75 82 57 5 76 85 62 71 96 78 76 68 72 75 83 93

G=[68 83 61 70 75 82 57 5 76 85 62 71 96 78 76 68 72 75 83 93]

The hist function can be used to determine the number of A\'s B\'s C\'s D\'s and E\'s in the grade from problem5.21, if the following grading scheme applies A>90to100

B>80to90 C>70to80 D>60to70 E>0todo

use the bar function to create a hisgoram based on the scheme

Solution

A = [68 83 61 70 75 82 57 5 76 85 62 71 96 78 76 68 72 75 83 93];


Cat_array = categorical(A,[A(A>90) A((A>80) & (A<90)) A((A>70) & (A<80)) A((A>60) & (A<70)) A((A>0) & (A<60))],{\'A\',\'B\',\'C\',\'D\',\'E\'})


h = histogram(Cat_array,\'BarWidth\',0.5)

G=[68 83 61 70 75 82 57 5 76 85 62 71 96 78 76 68 72 75 83 93] The hist function can be used to determine the number of A\'s B\'s C\'s D\'s and E\'s in the grad

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site