How to plot second order ode
이전 댓글 표시
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)
답변 (1개)
Gautam
2025년 2월 11일
0 개 추천
Hello John,
You can try using "fplot" function to plot the numeric function over a specified range
카테고리
도움말 센터 및 File Exchange에서 Plot Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!