Random Stream and mt19937ar with seed

39 visualizaciones (últimos 30 días)
DM
DM el 27 de Abr. de 2015
Respondida: Daylon Hester el 11 de Ag. de 2021
Hello,
The following object is built in by MATLAB
comm.AWGNChannel('NoiseMethod', 'Signal to noise ratio (SNR)',...
'SNR', snrdB, 'RandomStream', 'mt19937ar with seed', 'Seed', 67);
I am wondering what is the use of
'RandomStream', 'mt19937ar with seed', 'Seed', 67
I have seen this expression being used in many objects other than
comm.AWGNChannel.
Thanks

Respuesta aceptada

Sebastian Castro
Sebastian Castro el 27 de Abr. de 2015
It's a way of generating random numbers. Look at the first example below: http://www.mathworks.com/help/matlab/ref/randstream.html
Also, to see some other types you can refer to this: http://www.mathworks.com/help/matlab/ref/randstream.list.html
- Sebastian

Más respuestas (1)

Daylon Hester
Daylon Hester el 11 de Ag. de 2021
The argument following 'RandomStream' is the specific random number generator algorithm used. The default is called Mersenne Twister, but it is selected with 'mt19937ar'.
The seed number allows you to repeat the same number stream.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by