필터 지우기
필터 지우기

Generate a vector X of 100 independent samples from Gaussian distribution

조회 수: 9 (최근 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