In which Matlab version was rng() introduced?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Johannes Pfeifer
el 31 de En. de 2020
Respondida: Adam
el 31 de En. de 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.
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Random Number Generation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!