How to plot second order ode

7 visualizaciones (últimos 30 días)
John
John el 11 de Mayo de 2016
Respondida: Gautam el 11 de Feb. de 2025
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)

Respuestas (1)

Gautam
Gautam el 11 de Feb. de 2025
Hello John,
You can try using "fplot" function to plot the numeric function over a specified range

Community Treasure Hunt

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

Start Hunting!

Translated by