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

 Akzeptierte Antwort

Michael Haderlein
Michael Haderlein am 6 Aug. 2014

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Mehr zu Random Number Generation finden Sie in Hilfe-Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by