How do I do a quadratic integral to a sine function in Simulink
Show older comments
This is my simulation。I want to find the displacement by integrating an acceleration twice,which is a sin function, but when I take the second integral it's going to be very strange。

“Sin Wave” with the function: f=0.01*sin(pi*t)
Initial condition of the first Integrator is -0.001*pi
Initial condition of the second Integrator is 0
The picture of acceleration and velocity is correct, but then the curve of displacement starts to rise.



Do I miss something?
Accepted Answer
More Answers (0)
Categories
Find more on General Applications in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

