MATLAB: Random generation and ploting its pdf

pdf

i want generate number from 0 to 100 and plot its pdf(probability density function) as well as mean ,standard deviation.
Thank you.

Best Answer

n=randi(101,1000,1)-1;
hist(n,101)
m=mean(n),s=std(n)
Related Question