simulinkでsample and holdを複数回行い、複数回前までの値を保持
30 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Kouta Amano
am 19 Mär. 2020
Beantwortet: Toshinobu Shintai
am 20 Mär. 2020
やりたいこと:
入力を連続信号、トリガを周期的なパルス信号とした時に、トリガ発生時の値を保持したい。
それに加えて複数回前までの値を保持したい。
ホールドの初期値は0。
例:入力を固定値(1)としたとき
新 古
hold0 hold1 hold2
trigger1 1 0 0
trigger2 1 1 0
trigger3 1 1 1
0 Kommentare
Akzeptierte Antwort
Toshinobu Shintai
am 20 Mär. 2020
添付のようなモデルではどうでしょうか。
モデルはR2020aで作成しました。開けない場合はzipファイルの方にブラウザで開けるWebビューを作成しましたのでそちらをご確認ください。
0 Kommentare
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!