Simulink Switch Box Setup

1 回表示 (過去 30 日間)
Sumin
Sumin 2014 年 6 月 21 日
回答済み: Sumin 2014 年 6 月 23 日
Hello all,
I'd like to know whether my setup of switch boxes are correct. I have three criteria,
If -inf<u<-1 then pass through u1 If -1<u<1 then pass through u2 If 1<u<inf then pass through u3
I have 2 switch boxes (Switch1 and Switch2) setup. Regarding Switch1, input 1 is connected to u2, input 2 (threshold) is -1, input 3 is connected to u3. Regarding Switch2, input 1 is connected to u3, input 2 is 1, and input 3 is connected from output of Switch 1.
My question is, is this correct setup for what I'm trying to do?
Thanks in advance.

採用された回答

Danilo NASCIMENTO
Danilo NASCIMENTO 2014 年 6 月 21 日
I think the best way of doing this is using an embedded matlab function box.

その他の回答 (1 件)

Sumin
Sumin 2014 年 6 月 23 日
Danilo,
That's a great idea. I didn't know about that matlab function box. Thanks for the suggestion.

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by