songzhouran
2009-03-18, 12:37
好像hist只能画出现的次数,那换成出现概率怎么办呢?:confused:
如:
x=randn(50);
[f,h]=hist(x(:))
bar(h,f,1)
or
f=f/2500;
bar(h,f,1)
data=normrnd(0,1,1000,1);
[fp,xp]=ecdf(data);
ecdfhist(fp,xp);
vBulletin® v3.8.3,版权所有 ©2000-2025,Jelsoft Enterprises Ltd.