simulink is giving unexpected simulation answer
이전 댓글 표시
I am trying to simulate the following block diagram

which simulates the equation :
with the second integrator having the initial condition of 1.
where this equation can have the solution : 
but upon simulation I got the following result:

I can notice the mathematical solution doesn't follow actual simulation where the simulation will always produce sinusoidal trying to reach stability state which is the oscillation between (inital_condition / 2) and (-inital_condition / 2). so why doesn't the mathematical solution match the simulation.
댓글 수: 5
Walter Roberson
2024년 9월 6일
It looks to me as if you need to zoom in to see the cos() behaviour
abdo
2024년 9월 6일
Walter Roberson
2024년 9월 6일
I would be more surprised if the system were immediately stable. It takes time to reach equilibrium.
Sam Chak
2024년 9월 6일
Can you you show us the scope when wo is set to 1?
abdo
2024년 9월 6일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

