%by dynamic
%see also http://www.matlabsky.com
n=20;%二项分布选用铅稿的参数n
p=0.8;%参数p
data=binornd(n,p,[100,100]);%每列一个样本槐运孝
data=mean(data); %求均值悄闭
hist(data,50)