MATLAB Answers

How to plot second order ode

2 views (last 30 days)
John
John on 11 May 2016
Edited: John on 11 May 2016
syms m c dy k y t y(t) dy(t) y0 dy0
sol=dsolve(m*diff(dy) +c*dy + k*y == 3*sin(2*t),diff(y) == dy,y(0)==y0,dy(0)==dy0);
ezplot(sol.y)

  0 Comments

Sign in to comment.

Answers (0)

Sign in to answer this question.