Using RandStream objects in mask initialization code
Mostra commenti meno recenti
Is it possible to use a RandStream object in mask initialization code? For example, in the mask initialization, I'd like to be able to write:
x = rand(mystream,2);
where 'mystream' is a RandStream object. But since the mask initialization code runs in the mask workspace, how can the stream get there? Can streams be sent into the mask as dialog parameters? Is the only option to create mystream in the base workspace and use something like evalin in the mask initialzation code to get to it? Or maybe load mystream in from a file? Other options? What if the mask resides inside a referenced model? Does that matter?
Risposte (1)
Kaustubha Govind
il 23 Ott 2012
0 voti
I just tried this, and it looks like you should be able to pass in a RandStream object as a mask (dialog) parameter. Does that not work for you?
1 Commento
Paul
il 23 Ott 2012
Categorie
Scopri di più su Author Block Masks in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!