mardi 24 mai 2016

Initialising random number generator in Matlab

In Matlab one can use rng('default'); to initialize the random number generator.

Does this only hold for the current function or for the whole session?

Second, I only want to initialize the random number generator in a specific function. Before and after that specific function the not initialized random number generator should be used. How can this be done?




Aucun commentaire:

Enregistrer un commentaire