simulinkでsample and holdを複数回行い、複数回前までの値を保持

10 views (last 30 days)
Kouta Amano
Kouta Amano on 19 Mar 2020
Answered: Toshinobu Shintai on 20 Mar 2020
やりたいこと:
入力を連続信号、トリガを周期的なパルス信号とした時に、トリガ発生時の値を保持したい。
それに加えて複数回前までの値を保持したい。
ホールドの初期値は0。
例:入力を固定値(1)としたとき
    新     古
  hold0 hold1 hold2
trigger1 1 0 0
trigger2 1 1 0
trigger3 1 1 1

Accepted Answer

Toshinobu Shintai
Toshinobu Shintai on 20 Mar 2020
添付のようなモデルではどうでしょうか。
モデルはR2020aで作成しました。開けない場合はzipファイルの方にブラウザで開けるWebビューを作成しましたのでそちらをご確認ください。

More Answers (0)

Categories

Find more on モデル化 in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!