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

2 visualizaciones (últimos 30 días)
how to create an vector contains 10000 random values that uniformly distributed with mean 1 and variance 10 ?

Respuesta aceptada

Torsten
Torsten el 7 de Mzo. de 2019
Editada: Torsten el 7 de Mzo. de 2019
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.

Más respuestas (1)

Adam
Adam el 7 de Mzo. de 2019
Editada: Adam el 7 de Mzo. de 2019

Etiquetas

Aún no se han introducido etiquetas.

Community Treasure Hunt

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

Start Hunting!

Translated by