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 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](/WebImages/10/g68-83-61-70-75-82-57-5-76-85-62-71-96-78-76-68-72-75-83-93-1002669-1761516641-0.webp)
