フィルターのクリア

Integration of sine wave for a time period and resetting the initial condition.

5 ビュー (過去 30 日間)
TDR
TDR 2023 年 1 月 9 日
コメント済み: TDR 2023 年 3 月 17 日
I want to integrate sine wave for every .2 sec time period and start again from initial condition 0, but again it is starting from previous output. What do please help?
  2 件のコメント
Patrick
Patrick 2023 年 1 月 9 日
Hi TDR,
What happens, if you test it with a fixed step solver and a step size lower than 0.1?
Regards
Patrick
TDR
TDR 2023 年 1 月 10 日
Hi Patrick,
Thanks for responding on my post ,no change has been observed after after simulating on fixed step solver and taking step size lower than 0.1. May be problem arises because of contant value comes after integration ,if sampling time reduces it will added after each and very inatant making it ramp kind of signal and if sampling time increaces it integrate for same time and add the magnitude ,I want the limit of time integration example one sine wave cycle output of integrator is zero if it has no offset.If it has offset it will give offset value only and next limit period will starts from zero.
Thanks
Regards
Tulika

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

回答 (1 件)

Sarvesh Kale
Sarvesh Kale 2023 年 3 月 14 日
Hi TDR,
A probable solution can be to set the sample time of the discrete integrator block to a value such that the Nyquist criterion is satisfied. Example if input time period of sine wave is 1 sec then the sample time of integrator block should be below 0.5 sec.
I hope this helps in your query
Thank you
  1 件のコメント
TDR
TDR 2023 年 3 月 17 日
Thank you Sarvesh I got the solution .I got https://in.mathworks.com/help/comm/ref/integrateanddump.html ,Integrate and dump block this block solved my problem. :-)

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by