>> x=normrnd(15,5,1000,1); >> hist(x) >> x2=rand(1000,1); >> hist(x2,50) >> hist(x,50) >> y=normrnd(15,1,1000,1); >> figure;hist(y,50) >> x=0:30; >> pdf=normpdf(x,15,5);
>> plot(x,pdf,'o')
>> normcdf(10,15,5)
ans =
0.1587
>> normcdf(20,15,5)-normcdf(8,15,5)
ans =
0.7606
load NormQuery normplot(xnq) [h,p]=lillietest(xnq) norminv(1/4/length(xnq),mu,sigma)
标签:xnq,15,normcdf,50,hist,Matlab,normpdf From: https://www.cnblogs.com/physical-oceanography/p/16814453.html