Filter löschen
Filter löschen

In which Matlab version was rng() introduced?

1 Ansicht (letzte 30 Tage)
Johannes Pfeifer
Johannes Pfeifer am 31 Jan. 2020
Beantwortet: Adam am 31 Jan. 2020
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.

Akzeptierte Antwort

Adam
Adam am 31 Jan. 2020

Weitere Antworten (0)

Kategorien

Mehr zu Random Number Generation finden Sie in Help Center und File Exchange

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by