Multiple switch distance based.

2 ビュー (過去 30 日間)
Krzysztof Slezak
Krzysztof Slezak 2022 年 1 月 13 日
回答済み: Ankit 2022 年 1 月 13 日
Hello, I have a problem to create a distance based multiple switch. I wisch to create simulation which chose subsystems based on distance. For example when input >0 then one subsystem should be active and when input >500 second subsystem should be active, >1000 third subsystem etc. Only one subsystem should be active at the time.

採用された回答

Ankit
Ankit 2022 年 1 月 13 日
@Krzysztof Slezak, there are many ways to do this.
One way is to use If Simulink block together with If Action Subsystem. Please find attached one such example.
In future try to search some examples online through google or may be MATLAB File Exchange.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModel, Block, and Port Callbacks についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by