Simulink function's output is it's input

2 ビュー (過去 30 日間)
Alokin Jago
Alokin Jago 2011 年 12 月 3 日
Hello. Let's say we have this simple function block that increases it's input by one.
Something like this screenshot: http://i41.tinypic.com/2dj3u47.jpg
It doesn't work, since at the beginning the output is undefined so I need to put some kind of delay. What kind of delay do I put so that output is delayed EXACTLY one step.

採用された回答

Fangjun Jiang
Fangjun Jiang 2011 年 12 月 3 日
Use the "Unit Delay" block from Simulink->Descrete library. Put it in the feedback loop. You can set an initial value for it too. To get the "increment by 1" functionality, the starting number constant needs to be 1.
  1 件のコメント
Alokin Jago
Alokin Jago 2011 年 12 月 3 日
Thank you.

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

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by