How to plot Homogeneous solution and Particular integral seperately of a second order differntial equation using ode45
조회 수: 3 (최근 30일)
이전 댓글 표시
Equation
Eq = y'' + 4*y-15.6(cos(20t)-cosh(20t)-1.5(sin(20t)-sinh(20t)))==0
initial conditions y(0) = 0;y'(0) =0
댓글 수: 0
답변 (1개)
Alan Stevens
2022년 4월 16일
ode45 just solves first order equations, so turn your second order equation into two first order ones, like so:
y' = v
v' = -4*y+15.6(cos(20t)-cosh(20t)-1.5(sin(20t)-sinh(20t)))
Look up help on ode45 to see how it solves these.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!