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