Permanent signal from one-time input

Hi,
I am looking for a way to turn a one-time input into a permanent signal. Every solution I can think of would include a feedback loop which Simulink won't accept.
Any ideas?

 採用された回答

Linus
Linus 2021 年 7 月 1 日

0 投票

It turns out I'm just really dense. I solved my problem by just using an integrator and put a Compare-To-Zero (==) at the output. This way, any one-time nonzero input to the integrator, no matter how small the timestep, will result in a Boolean 1 as a permanent output signal.
An obvious solution but maybe someone will have the same issue.

その他の回答 (0 件)

カテゴリ

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

製品

タグ

質問済み:

2021 年 6 月 30 日

回答済み:

2021 年 7 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by