generate and plo gaussian random sequence

I want to generate and plot Gaussian random sequence whose samples are independent with mean 5 and variance 2. Generate 1000 samples.
and estimating the mean and variance
I don't have any experience for this method

답변 (1개)

Srijith Kasaragod
Srijith Kasaragod 2021년 9월 24일

0 개 추천

Hi,
You can use 'randn' function to generate gaussian random sequence with mean 1 and variance 0 and transform it to desired mean(μ) and variance() using the relation: randn(1,n) + μ.

카테고리

도움말 센터File Exchange에서 Random Number Generation에 대해 자세히 알아보기

제품

질문:

2021년 9월 19일

답변:

2021년 9월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by