You are on page 1of 1

Question 2 M File

% Mohamed Yasser
% Problem Set 1 Question (2d)
close all
clear
clc

M = [2 , 0 , 0 ; 0 , 1 , 0 ; 0 , 0 , 2];
% M = Mass Matrix
K = [ 7 , -2 , -4 ; -2 , 5 , -3 ; -4 , -3 , 8.5]*1E4;
% K = Stiffness Matrix
[U,w2] = eig(M\K);
% U = Modal Matrix (Eigenvectors)
% w2 = Squared Natural Frequencies (Eignevalues)

w = sqrt(w2);
% w = Natural Frequencies

A = U'*M*U;
B = U'*K*U;

Answers

U = w2 = 1.0e+04 *
-0.5675 -0.6898 -0.0843 0.4880 0 0
-0.6153 0.6261 -0.8286 0 5.4616 0
-0.5471 0.3635 0.5535 0 0 6.8004

w =
69.8573 0 0
0 233.7015 0
0 0 260.7749

A = B = 1.0e+04 *
1.6214 -0.0000 -0.0000 0.7912 -0.0000 -0.0000
-0.0000 1.6080 0.0000 -0.0000 8.7823 0.0000
-0.0000 0.0000 1.3135 -0.0000 0.0000 8.9319

You might also like