random generation and ploting its pdf

조회 수: 26 (최근 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 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