Solving IVP DE with dsolve and initial conditions

Hello, I'm having trouble on where to start solving this problem in Matlab. I know I am supposed to use the dsolve function but I'm not sure on the proper syntax I should be using when dealing with the second derivative part of the equation. Any help on how to solve this equation in Matlab with the given conditions and how to plot y(t) vs y would be appreciated.
Consider the Initial value problem: d^2y/dt + p dy/dt + 2y = 2 cos(wt), y(0) = 0, y′(0) = 0 1. Assuming p = 0 and w 6= 1 solve it using dsolve. 2. Plot solutions of y(t) vs t for w = 0.5, w = 0.6 w = 0.7, w = 0.8, w = 0.9 and w = 0.95 3. Repeat part 1, 2 with p = 1/4

답변 (0개)

카테고리

도움말 센터File Exchange에서 Programming에 대해 자세히 알아보기

질문:

2016년 3월 1일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by