フィルターのクリア

Switch block driven by time in Simulink

8 ビュー (過去 30 日間)
Adi
Adi 2011 年 12 月 13 日
Hi. Is there any switch block that will choose (switch) from two input signals after a specific amount of time? For exemple: t=0 to 0.05 -> input is A; t=0.05 to 0.1 -> input is B; t=0.1 to 1.05 -> input is A; etc. So that i can compare both signals on a single scope. I'm kinda n00b.
I've tried with Switch and a Clock, but can't make it work.

採用された回答

Fangjun Jiang
Fangjun Jiang 2011 年 12 月 13 日
The switching time seems periodic and regular. You can use a Pulse Generator block to generate a square wave (period is 0.1, 50% duty cycle) to drive the Switch block.
  2 件のコメント
Adi
Adi 2011 年 12 月 13 日
I think it worked although the sinwaves have some pretty 'uncurved' edges now.
Adi
Adi 2011 年 12 月 13 日
Thanks.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by