generate and plo gaussian random sequence

12 visualizaciones (últimos 30 días)
Yousef Azrag
Yousef Azrag el 19 de Sept. de 2021
Respondida: Srijith Kasaragod el 24 de Sept. de 2021
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

Respuestas (1)

Srijith Kasaragod
Srijith Kasaragod el 24 de Sept. de 2021
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) + μ.

Categorías

Más información sobre Random Number Generation en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by