![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/176157/image.png)
Unseeded random noise in Simulink
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I'm wondering if there is a way to remove seeding from the white noise generator in Simulink. I have a Simulink model that I am running multiple times with external input from the workspace. The model itself contains some intrinsic noise that I would like to be different for each run. Is this possible? Thanks!
0 commentaires
Réponse acceptée
Jon Boerner
le 17 Oct 2014
You cannot remove the seed option, but you can use a random seed. For example:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/176157/image.png)
This should give you a different output every time you run the model.
2 commentaires
Sean de Wolski
le 17 Oct 2014
Unless the rng is reset somewhere else in case rand(1) is deterministic.
Jon Boerner
le 17 Oct 2014
Sean is right. There are times this does not work, so it is worth double checking the output of this block in your model every once-in-a-while.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Sources dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!