ideal mass spring dampening system with an impulse
10 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
Arnaud Miege
on 18 Apr 2011
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
0 Comments
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!