how to create an vector contains 10000 random values that uniformly distributed with mean 1 and variance 10 ?

1 回表示 (過去 30 日間)
how to create an vector contains 10000 random values that uniformly distributed with mean 1 and variance 10 ?

採用された回答

Torsten
Torsten 2019 年 3 月 7 日
編集済み: Torsten 2019 年 3 月 7 日
mean = 1.0;
std = sqrt(10);
N = 10000;
u = (mean-sqrt(12)/2*std) + sqrt(12)*std*rand(N,1)
u is uniformly distributed on
[a:b] = [m-sqrt(12)/2*std:m+sqrt(12)/2*std]
with the prescribed mean and standard deviation.

その他の回答 (1 件)

Adam
Adam 2019 年 3 月 7 日
編集済み: Adam 2019 年 3 月 7 日

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by