You are on page 1of 1

% 4 Degree of Freedom spring mass system

echo on
hold on
% Assigning the values of masses
% Mass is in kg
m1=5.31;
m2=28.49;
m3=8.62;
m4=12.78;
% Assigning the values of Damping constant
% Damping constant unit is Ns/m
c1=460;
c2=5400;
c3=5190;
c4=2370;
% Assigning the values of Spring Constant
% Spring constant unit is N/m
k1=356370;
k2=208570;
k3=187110;
% Assigning the values to the matrix
m=[m1,0,0,0;
0,m2,0,0;
0,0,m3,0;
0,0,0,m4];
c=[c1,0,0,0;
-c1,c2,0,0;
0,-c2,c3,0;
0,0,-c3,c4];
k=[k1,0,0,0;
-k1,k2,0,0;
0,-k2,k3,0;
0,0,-k3,k4];

You might also like