MATLAB Answers

In which Matlab version was rng() introduced?

조회 수: 9(최근 30일)
Johannes Pfeifer
Johannes Pfeifer 31 Jan 2020
답변: Adam 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.

  댓글 수: 0

Sign in to comment.

추가 답변(0개)

제품


릴리스

R2019b

Translated by