generating random variables with expected value of one and finite variation.
조회 수: 3 (최근 30일)
이전 댓글 표시
How can I generate positive i.i.d random variables with the expected value of one and finite variation in MATLAB? Anyone help please.
댓글 수: 0
채택된 답변
Torsten
2015년 1월 23일
a = 1;
y = a*randn(1000,1) + 1;
creates 1000 normally distributed random numbers with expected value of 1 and variance a.
Best wishes
Torsten.
댓글 수: 2
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Random Number Generation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!