The number of faculty members in each department at a certain College of Engineering is:
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:12| Question number:4.12
All Answers
total answers (1)
Ch12Ex4.m
%Graphically depict faculty sizes using different plots
ME = 22;
BM = 45;
CE = 23;
EE = 33;
data = [ME BM CE EE];
labels = {'ME','BM','EE','CE'};
% plot is not very good method
plot(data)
set(gca,'XTick',1:4,'XTickLabel',labels)
title('College Faculty')
% pie chart allows comparison but if two numbers are
% close, virtually impossible to see which is larger
figure
pie(data,labels);
title('College Faculty')
% bar chart also easy to compare and can easily
% compare any two with each other
figure
bar(data)
set(gca,'XTickLabel',labels)
title('College Faculty')
need an explanation for this answer? contact us directly to get an explanation for this answer