random generation and ploting its pdf

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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Random Number Generation in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by