persistent init and rng
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Image Analyst
am 23 Apr. 2015
Which function? If you say "doc rng" (or whatever function you want), does it bring up the help?
Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!