Integration of sine wave for a time period and resetting the initial condition.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Patrick
le 9 Jan 2023
Hi TDR,
What happens, if you test it with a fixed step solver and a step size lower than 0.1?
Regards
Patrick
Réponses (1)
Sarvesh Kale
le 14 Mar 2023
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
Voir également
Catégories
En savoir plus sur Neural Simulation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!