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 Center および File ExchangeRandom Number Generation についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by