Matlab (calculate natural frequencies using eig function)

AI Thread Summary
The discussion revolves around calculating natural frequencies using the eig function in MATLAB with given mass (M), damping (C), and stiffness (K) matrices. The user encounters issues with the matrix A, particularly with the term -M/C resulting in NaN values, which prevents the eig function from executing correctly. Attempts to use -inv(M*C) also yield -Inf values, indicating a problem with matrix dimensions or singularity. Clarification is sought on whether the problem statement provided is complete, as this may affect the calculations. The focus remains on resolving the matrix issues to successfully compute the natural frequencies.
Junichirol
Messages
3
Reaction score
1

Homework Statement


Determine the corresponding natural frequencies
M = [1 0 0 0;0 1 0 0;0 0 1 0;0 0 0 1];
C = [2 0 0 0;0 0 0 0;0 0 0 0; 0 0 0 0];
K = [10 -5 0 0;-5 10 -5 0;0 -5 10 -5;0 0 -5 10];

Homework Equations


A = [zeros (4) eye(4); -M/K -M/C]
[V,D] = eig(A)

The Attempt at a Solution


just need help on A = [zeros (4) eye(4); -M/K -M/C].
-M/C =
NaN NaN NaN NaN
NaN NaN NaN NaN
NaN NaN NaN NaN
NaN NaN NaN -Inf

I also try with -inv(M*C)
-Inf -Inf -Inf -Inf
-Inf -Inf -Inf -Inf
-Inf -Inf -Inf -Inf
-Inf -Inf -Inf -Inf

This matrix caused the [V,D] = eig(A) cannot work.
Any step that i missed up?
 
Physics news on Phys.org
Junichirol said:

Homework Statement


Determine the corresponding natural frequencies
M = [1 0 0 0;0 1 0 0;0 0 1 0;0 0 0 1];
C = [2 0 0 0;0 0 0 0;0 0 0 0; 0 0 0 0];
K = [10 -5 0 0;-5 10 -5 0;0 -5 10 -5;0 0 -5 10];
Is that really the complete problem your were given?
 
DrClaude said:
Is that really the complete problem your were given?
For a system with the mass, damping, stiffness matrices given as below:
M = [1 0 0 0;0 1 0 0;0 0 1 0;0 0 0 1];
C = [2 0 0 0;0 0 0 0;0 0 0 0; 0 0 0 0];
K = [10 -5 0 0;-5 10 -5 0;0 -5 10 -5;0 0 -5 10];
Determine the corresponding natural frequencies by using Matlab eig function.
 

Similar threads

Replies
8
Views
2K
Replies
4
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
Replies
0
Views
150
Replies
2
Views
1K
Replies
3
Views
2K
Back
Top