필터 지우기
필터 지우기

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.

채택된 답변

Torsten
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
Torsten
Torsten 2015년 1월 23일
Sorry, replace "variance" by "standard deviation".
Best wishes
Torsten.

댓글을 달려면 로그인하십시오.

추가 답변 (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