How to obtain the eigenvalues when I get the warning that the matrix is singular?

조회 수: 1 (최근 30일)
How can I obtain the row reduction method to get the values for Lamda?
% A
I = eye(2)
m1 = [7 3; 3 -1]
Lamda = 8 % The value for λ
% B
LaI = I * Lamda % Identity matrix - value of λ
m2s = m1 - LaI % Caluculating the new matrix
% C
zc = zeros(size(m2s,1),1) % creating a zero column
m3s = [m2s, zc] % adding the zero column at the end
I tried to use the forward an backward passing method, but there I only get the warning that the matrix is singular.

답변 (1개)

Walter Roberson
Walter Roberson 2022년 5월 4일
% A
I = eye(2)
I = 2×2
1 0 0 1
m1 = [7 3; 3 -1]
m1 = 2×2
7 3 3 -1
syms Lamda % The value for λ
% B
LaI = I * Lamda % Identity matrix - value of λ
LaI = 
m2s = m1 - LaI % Caluculating the new matrix
m2s = 
d = det(m2s)
d = 
eigens = solve(d)
eigens = 

카테고리

Help CenterFile Exchange에서 Dynamic System Models에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by