clear allclose allclcM=10000;N=100000;figure(1)for ii=1:N x =sqrt(12)*(rand(1,M) -0.5); if ii==1 mx = mean (x) sx2 = var(x) subplot(2,1,1), plot(x) subplot(2,1,2), hist(x,50) end y(ii) = sum(x)/sqrt(M);endmean (y)var(y)figure(2)subplot(2,1,1), plot(y)subplot(2,1,2), hist(y,50)
————————————————-
I want to make Gaussian PDF from this histogram.
Please help me!!!!!!
Best Answer