Random Stream and mt19937ar with seed

조회 수: 20 (최근 30일)
DM
DM 2015년 4월 27일
답변: Daylon Hester 2021년 8월 11일
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

채택된 답변

Sebastian Castro
Sebastian Castro 2015년 4월 27일
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

추가 답변 (1개)

Daylon Hester
Daylon Hester 2021년 8월 11일
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.

카테고리

Help CenterFile Exchange에서 Random Number Generation에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by