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

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