フィルターのクリア

Generate a vector X of 100 independent samples from Gaussian distribution

5 ビュー (過去 30 日間)
Li Peng
Li Peng 2016 年 9 月 15 日
回答済み: s.p4m 2016 年 9 月 15 日
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