- In Child model --> Create Model parameter for seed.
- In "Model Block" in Parent model --> Pass the seed value in "Model Argument" field
How to have multiple seeds for random generation in Simulink?
5 ビュー (過去 30 日間)
古いコメントを表示
I have a model in Simulink that uses the `Random Number` block. This `Random Number` block uses a `Seed` value for the generation of random values. Now if I have multiple copies of my model:
main.slx
|
|-----> child_1.slx (Random Number block inside)
|
|
|-----> child_2.slx (Random Number block inside)
|
|
|-----> child_3.slx (Random Number block inside)
How can I set the `Seed` of `Random Number` to be different in each copy?
0 件のコメント
採用された回答
TAB
2018 年 8 月 24 日
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Sources についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!