About random number generators
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ahmed abrous
am 22 Feb. 2014
Beantwortet: ahmed abrous
am 25 Feb. 2014
Hi everyboby
I want to create a program on simulink which use a random number box but I have seen that its output is repeated at each step of the simulation. So how can I change the seed of this program to get the good result.
I use actually matlab 2010a, and I tried rng bgut not working.
Thank you.
0 Kommentare
Akzeptierte Antwort
Lucas García
am 22 Feb. 2014
Although currently discouraged, you can use the former synthax for changing the seed with older MATLAB versions: http://www.mathworks.es/es/help/matlab/math/updating-your-random-number-generator-syntax.html
rand('seed', sd)
Weitere Antworten (2)
Siehe auch
Kategorien
Mehr zu Sources 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!