If Action Subsystem block

5 ビュー (過去 30 日間)
Adham
Adham 2014 年 8 月 12 日
回答済み: Rajanya 2024 年 11 月 11 日
Is it possible to make an If action subsystem block to repeat itself again ? if it is possible please how ?

回答 (1 件)

Rajanya
Rajanya 2024 年 11 月 11 日
Hi @Adham,
It can be a good idea to just use iterator blocks if you're looking for a loop. But if you strictly want the 'If Action' subsystem to repeat, you can achieve similar functionality using feedback and relational logic. A sample model demonstrating this approach might look like the following:
In this setup, the 'If Action' subsystem block is configured to increment the input by 1 at each time step, repeating this process 5 times. Ultimately, the value 6 is output after the execution of the 'else' block. Also, remember to include a 'Unit Delay' block before establishing any feedback connections, as direct feedback is not supported.
Hope this helps!

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by