System of equations for Tensors, Eigenvalues and Eigenvectors

2 views (last 30 days)
I am trying to get a system of equations for Eigenvalues and Eigenvectors.
T matrix equation is:
(T(i,k)-L(r)*I)*A(r,k)=0
The first answer should be:
[(T11-L1)*A11 T12*A12 T13*A13 T14*A14] ]
[T21*A11 (T22-L1)*A12 T23*A13 T24*A14]
[T31*A11 T32*A12 (T33-L1)*A13 T34*A14]
[T41*A11 T42*A12 T43*A13 (T44-L1)*A14]
Thanks in Advance!
syms T11 T12 T13 T14 T21 T22 T23 T24 T31 T32 T33 T34 T41 T42 T43 T44
syms L1 L2 L3 L4
syms A11 A12 A13 A14 A21 A22 A23 A24 A31 A32 A33 A34 A41 A42 A43 A44
I=[1 0 0 0;0 1 0 0;0 0 1 0;0 0 0 1]
T=[T11 T12 T13 T14; T21 T22 T23 T24; T31 T32 T33 T34; T41 T42 T43 T44]
A=[A11 A12 A13 A14; A21 A22 A23 A24; A31 A32 A33 A34; A41 A42 A43 A44]
L=[L1; L2; L3; L4]for r=1:4
for k=1:4
for i=1:4
r1=r
k1=k
i1=i
f=(T(i,k)-L(r)*I)*A(r,k)
end
end
end

Answers (0)

Community Treasure Hunt

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

Start Hunting!