How do I run same subsystem for certain number of times in Simulink?

6 ビュー (過去 30 日間)
Anup
Anup 2022 年 11 月 17 日
回答済み: Fangjun Jiang 2022 年 11 月 18 日
I have a subsystem in Simulink. I need to run the same subsystem for a certain number of times. The output of first subsystem would be input to the second and process goes on. This should happen in each time-step.
Let's say I need to run the same subsystem for 20 times. At t=1, the subsystem should run 20 times, with output of first is input to second and this goes on for 20 times. Then, this whole process goes on for t=2,3,4....
I can do this by connecting same subsystem for 20 times, but it is tedious to do and becomes very hard to modify the system if 20 changes to 30.
Is there a easy way to fix this problem?

採用された回答

Fangjun Jiang
Fangjun Jiang 2022 年 11 月 18 日

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSubsystems についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by