Time-varying constant input in Simulink

Hi, How can I generate a constant input, but time-varying? Say at 0-10, it should output 5, then 10-20 -->0, then after 20, it should output say 10?
I was trying ''repeating sequence'', but that was doing linear increase on intervals; I need step/sudden increase.

回答 (1 件)

Yi Han
Yi Han 2017 年 11 月 17 日

0 投票

Hi Ariana, A lookup table should meet your needs. Thanks, Han

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

タグ

質問済み:

2015 年 1 月 23 日

回答済み:

2017 年 11 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by