How can I divide by the function variable in a Simulink equation?
이전 댓글 표시
I want to solve this fairly simple second order differential equation using Simulink:

Which I rewrote as:

The problem is that
is another function of r, and because of that I cannot divide
by a constant as is normally done when solving differential equations in Simulink.

How can I divide by r in my Simulink model?
댓글 수: 2
Pat Gipper
2024년 5월 21일
The output of the second integrator should be the solution to your second order equation. Why not feed it into the divide? One word of warning is that Simulink will be solving with a starting value of 0, so you will be dividing by 0 right from the start. To avoid this error try feeding a non-zero initial condition into the second integrator.
Louis
2024년 6월 5일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Configure Simulation Conditions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


