generating random variables with expected value of one and finite variation.

2 ビュー (過去 30 日間)
Mohammad Sayeed
Mohammad Sayeed 2015 年 1 月 23 日
コメント済み: Mohammad Sayeed 2015 年 1 月 23 日
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.
Mohammad Sayeed
Mohammad Sayeed 2015 年 1 月 23 日
That works. Thank you brother.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by