Imposing interval on normrnd procedure.
이전 댓글 표시
Hello
I'm running the following line of code, but would like to impose an interval on the drawings from 0 to 10. d1=normrnd(3.35, 2.02,n1,1);
All ideas would be helpful,
Regards, Lena
답변 (1개)
bym
2011년 12월 11일
imposing an interval on the result means it is no longer a normal distribution. With that caveat:
d1(d1<0 | d1>10)=[];
카테고리
도움말 센터 및 File Exchange에서 Aerospace Blockset에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!