[probability help]probability of a certain number and a range of certain numbers
이전 댓글 표시
How can I find the probability of a certain number and a range of certain numbers at M? M = randi([5,18],1000);
답변 (1개)
Chad Greene
2014년 10월 28일
In this distribution, it looks like about 21% of the values are in the range of 6 to 8, inclusive:
M = randi([5,18],1000);
100*sum(M(:)>=6&M(:)<=8)/numel(M)
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!