フィルターのクリア

Extract the value of a signal at t=X sec in Simulink

2 ビュー (過去 30 日間)
Niels
Niels 2015 年 3 月 24 日
コメント済み: Niels 2015 年 3 月 24 日
Hello,
I would like to extract the value of a signal at a precise time. I have a signal (from t=0sec to t=30sec) and I would like to get the value at t=5sec using simulink.
To be more precise, I would like to build a subsystem with as an input my signal (named Y) and giving an output signal that would be :
Y for t<5sec
Y(5sec) for t>=5sec
I was thinking of using an embedded Matlab code but I don't manage to use it. Or maybe there is an easier way ? Could you help me please ? I'm using Simulink 6.3 (an old version :) )
Thank you

採用された回答

Titus Edelhofer
Titus Edelhofer 2015 年 3 月 24 日
Hi,
a simple way is using an enabled subsystem:
  • Feed the signal to the inport
  • Take the clock block, feed into "Compare to Constant" block, feed into enable port.
  • The enabled subsystem is configured per default to "hold" output port signals ...
Hope this helps,
Titus
  1 件のコメント
Niels
Niels 2015 年 3 月 24 日
It works ! Thank you very much !

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

その他の回答 (0 件)

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by