In which Matlab version was rng() introduced?

조회 수: 1 (최근 30일)
Johannes Pfeifer
Johannes Pfeifer 2020년 1월 31일
답변: Adam 2020년 1월 31일
The old syntax to set the seed of a random number generator like
randn('state',1)
is discouraged. Instead, it is recommended to use
rng(1);
However, as far as I know, older versions of Matlab did not yet have that functionality. But in contrast to other functions, the documentation https://mathworks.com/help/matlab/ref/rng.html does not mention in which version the current functionality was introduced.

채택된 답변

Adam
Adam 2020년 1월 31일

추가 답변 (0개)

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by