random generation and ploting its pdf

18 次查看(过去 30 天)
i want generate number from 0 to 100 and plot its pdf(probability density function) as well as mean ,standard deviation.
Thank you.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Random Number Generation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by