jeudi 28 mars 2019

Can I save a RandStream and load it at a later time to continue a simulation?

My question is whether a RandStream in matlab can be saved to a file and loaded at a later time to continue a simulation picking up the random number sequence from it's last point. All I can find is that one can save a RandStream e.g:

s1 = RandStream('mt19937ar','Seed',1); savedState = s1.State;

nothing about saving a stream to a file and loading it at another run

Thanks!




Aucun commentaire:

Enregistrer un commentaire