random generation and ploting its pdf

18 Ansichten (letzte 30 Tage)
Govind K
Govind K am 6 Aug. 2014
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
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 Help 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