How to solve second order inhomogeneous equations using ode45

I have the following ODE for a vibrational response:
526.87x''+497x'+47000x=940sin(10pi*t)
with initial conditions x(0)=0.1099,x'(0)=0
I have been instructed to solve this numerically using ODE45 over 50 time periods but I am unsure how to write this as a function which ODE45 will accept, partly because it is inhomogeneous but also because it is second order.

回答(1 个)

fun=@(t,y)[y(2);(940*sin(10*pi*t)-47000*y(1)-497*y(2))/526.87];
Best wishes
Torsten.

类别

在 帮助中心 和 File Exchange 中查找有关 Vibration Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by