ideal mass spring dampening system with an impulse

3 次查看(过去 30 天)
Hi, first time poster, and I need help on how to do an impulse on matlab. I have an ideal mass spring damper system in which an impulse is applied, where distance is measured. I got to the ODE md^2x/t +Bdt/dx +kx= impulse, and have already simulated this on simulink. My question is how do i simulate an impulse on matlab in my situation, and then using ode45 to get x. I already now how to solve 2nd order ODE's on matlab, i just have no idea on how to get impulse involved.

回答(1 个)

Arnaud Miege
Arnaud Miege 2011-4-18
You can convert your ODE to an LTI system and use the impulse function from the control system toolbox:
msd = tf(1,[m b k]);
impulse(msd);
HTH,
Arnaud

类别

Help CenterFile Exchange 中查找有关 Assembly 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by