Random Gaussian variable distribution

Does matlab has a specific command to denote a zero mean non-Complex Gaussian random variable with unit variance ? Or does anyone can help me by giving me the appropriate code for this ?
Any help could be useful. Thanks in advance!

 Respuesta aceptada

Star Strider
Star Strider el 6 de Feb. de 2015
If you want normally-distributed random numbers with zero mean and unit variance (and therefore unit standard deviation), use the randn function:
N01 = randn(1,10);
This will generate a 10-element row vector with zero mean and unit variance.

2 comentarios

Konstantinos
Konstantinos el 6 de Feb. de 2015
Thanks for the help!
Star Strider
Star Strider el 6 de Feb. de 2015
My pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Random Number Generation en Centro de ayuda y File Exchange.

Preguntada:

el 6 de Feb. de 2015

Comentada:

el 6 de Feb. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by