random generation and ploting its pdf

18 ビュー (過去 30 日間)
Govind K
Govind K 2014 年 8 月 6 日
回答済み: Michael Haderlein 2014 年 8 月 6 日
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
Michael Haderlein 2014 年 8 月 6 日
n=randi(101,1000,1)-1;
hist(n,101)
m=mean(n),s=std(n)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeRandom Number Generation についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by