ode45 for forced vibration with 10 dof?

is it possible to solve veolcity response of ode45 with 10 degrees of freedom(dof), if yes can you help me with some examples

8 Comments

Thanks bro.Is there any other example other than this one
Aquatris
Aquatris on 5 Dec 2019
Edited: Aquatris on 5 Dec 2019
The number of degrees of freedom does not matter. If you put the equation of motion into xdot = Ax+Bu form (state space form), ode45 can be used to solve for x no matter the size of A and B. It is also true for nonlinear cases.
Hi bro thanks for the comment.I have another doubt if below equation is the formulation of displacement and velocity response means what will be the acceleration response equation are we want to do differentiation once again are any other procedure is there?
function yp = unforced1(t,y)
dydt_1 = y(2);
dydt_2 = (-((c/m)*y(2))-((k/m)*y(1)));
yp = [y(2);(-((c/m)*y(2))-((k/m)*y(1)))];
What is it you would do differentiation on ?
If you need another level of integration, add another y entry, like
yp = [y(2); y(3); (-((c/m)*y(3))-((k/m)*y(2)))];
ok, I got it bro thank you very much.

Sign in to comment.

Answers (0)

Asked:

on 5 Dec 2019

Community Treasure Hunt

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

Start Hunting!