Borrar filtros
Borrar filtros

Generate a vector X of 100 independent samples from Gaussian distribution

5 visualizaciones (últimos 30 días)
Generate a vector X of 100 independent samples from Gaussian distribution with mean=5 and variance =3.

Respuesta aceptada

Thorsten
Thorsten el 15 de Sept. de 2016
X = sqrt(3)*randn(100, 1) + 5;

Más respuestas (1)

s.p4m
s.p4m el 15 de Sept. de 2016
You could also use the random comand
X = random('norm',5,3,100,1);

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by