Professional Documents
Culture Documents
Reg. No.: 2018-MC-306 Subject: Probability and Statistics Lab Submitted To: Engg. Saqib Zafar
Reg. No.: 2018-MC-306 Subject: Probability and Statistics Lab Submitted To: Engg. Saqib Zafar
Histogram is similar as bar graph but a histogram group’s numbers into ranges .The height of
each bar shows how many fall into each range. And you decide what ranges to use!
Pie chart:
A Pie Chart is a type of graph that displays data in a circular graph. The pieces of the graph are
proportional to the fraction of the whole in each category. In other words, each slice of the pie is
relative to the size of that category in the group as a whole. The entire “pie” represents 100
percent of a whole, while the pie “slices” represent portions of the whole.
Tasks with MATLAB codes:
Bar graph:
Code:
syms x
a=[10 20 30 23 33 55]
b=[2001 2002 2003 2004 2006 2007]
x=bar(b,a)
title('Bar graph')
Results: