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

1 次查看(过去 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.

更多回答(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