Generate a vector X of 100 independent samples from Gaussian distribution

14 次查看(过去 30 天)
Generate a vector X of 100 independent samples from Gaussian distribution with mean=5 and variance =3.

采纳的回答

Thorsten
Thorsten 2016-9-15
X = sqrt(3)*randn(100, 1) + 5;

更多回答(1 个)

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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by