How to plot second order ode
3 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Gautam
2025 年 2 月 11 日 9:00
Hello John,
You can try using "fplot" function to plot the numeric function over a specified range
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!