persistent init and rng

1 vue (au cours des 30 derniers jours)
DM
DM le 23 Avr 2015
Commenté : Image Analyst le 23 Avr 2015
I found the following command in a built in function in MATLAB, can anyone please explain to me what they mean?
persistent init;
if isempty(init)
init = 1;
rng(seed);
end
Thanks
  1 commentaire
Image Analyst
Image Analyst le 23 Avr 2015
Which function? If you say "doc rng" (or whatever function you want), does it bring up the help?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Random Number Generation dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by