random generation and ploting its pdf

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

Accepted Answer

Michael Haderlein
Michael Haderlein on 6 Aug 2014
n=randi(101,1000,1)-1;
hist(n,101)
m=mean(n),s=std(n)

More Answers (0)

Categories

Find more on Random Number Generation in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!