필터 지우기
필터 지우기

How can I calculate unknown roots from a matrix

조회 수: 4 (최근 30일)
Merve Ala
Merve Ala 2023년 1월 16일
댓글: Matt J 2023년 1월 16일
I have two basic matrix, and I try to calculate 'lamda' value according to eigen value problem. I must calculate four different 'lamda' values. My code is in below and the results are so complex. I wanna basic results. What can I do?
A = [ 12 22 33 44 ;
49 56 68 79 ;
10 11 12 13 ;
46 58 64 79 ;]
B = [15 16 17 18 ;
44 58 67 71 ;
10 11 12 13;
15 16 17 18 ;]
D=zeros(4,4);
syms lamda
I = eye (4);
D = inv(A)*B-(lamda*I)
solve(det(D) == 0,lamda)
the results are
ans =
root(z^4 + (4855*z^3)/3169 - (1700140947479703230035*z^2)/706682405897585557504 - (713595360956524300343*z)/5653459247180684460032 + 8158275/2826729623590342230016, z, 1)
root(z^4 + (4855*z^3)/3169 - (1700140947479703230035*z^2)/706682405897585557504 - (713595360956524300343*z)/5653459247180684460032 + 8158275/2826729623590342230016, z, 2)
root(z^4 + (4855*z^3)/3169 - (1700140947479703230035*z^2)/706682405897585557504 - (713595360956524300343*z)/5653459247180684460032 + 8158275/2826729623590342230016, z, 3)
root(z^4 + (4855*z^3)/3169 - (1700140947479703230035*z^2)/706682405897585557504 - (713595360956524300343*z)/5653459247180684460032 + 8158275/2826729623590342230016, z, 4)

채택된 답변

Matt J
Matt J 2023년 1월 16일
편집: Matt J 2023년 1월 16일
A = [ 12 22 33 44 ;
49 56 68 79 ;
10 11 12 13 ;
46 58 64 79 ];
B = [15 16 17 18 ;
44 58 67 71 ;
10 11 12 13;
15 16 17 18 ];
lambda = eig(B,A)
lambda = 4×1
-2.4812 1.0000 -0.0000 -0.0509
  댓글 수: 2
Merve Ala
Merve Ala 2023년 1월 16일
Is it eig(A,B)=?
Matt J
Matt J 2023년 1월 16일
I don't see why it would be. Your characteristic equation was,
B-lamda*A=0

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by