フィルターのクリア

How to increment a value every second with periodic resets to zero in Simulink?

12 ビュー (過去 30 日間)
Linda
Linda 2024 年 3 月 27 日
回答済み: Jim Riggs 2024 年 3 月 27 日
I need to simulate a 'Heartbeat' function in Simulink, create an input variable x with value starting from 0, then increment x by 1 every second, simutaneously output a variable y every second, which is equal to x . Once x reaches 100, reset x to zero and repeat the increment cycle. How to program 'MATLAB Function' block with input x and output y to realize the 'Heartbeat' function? Or any other ways?

回答 (1 件)

Jim Riggs
Jim Riggs 2024 年 3 月 27 日

カテゴリ

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

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by