- 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!