Solving IVP DE with dsolve and initial conditions
1 view (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!