Integration of sine wave for a time period and resetting the initial condition.
조회 수: 5 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1256952/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1256947/image.png)
댓글 수: 2
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
답변 (1개)
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Neural Simulation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!