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 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File 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