Filter löschen
Filter löschen

How to get eigenvalues with varying coefficient

1 Ansicht (letzte 30 Tage)
PetronasAMG
PetronasAMG am 3 Okt. 2021
Kommentiert: PetronasAMG am 3 Okt. 2021
I have t varing from 0 < t < 5
and x1 = (1+t)/2, x2 = (t^2)/4 and x4 = (1+2t)/6
so i did linspace(0,5,5)
A = [x1 x2; 0 x4];
B = eig(A);
since my number varies with t, I am getting an dimesntion of array error. how would i gran specific eigenvlaues for all range of t? please help!

Antworten (1)

VBBV
VBBV am 3 Okt. 2021
t = linspace(0,5,4);
x1 = (1+t)/2;
x2 = (t.^2)/4 ;
x4 = (1+2*t)/6;
A = [x1; x2; zeros(1,length(t)); x4];
B = eig(A)
B = 4×1
3.6611 0.1916 -0.8250 0
Divide the variable t into same size as number of elements of A
  2 Kommentare
VBBV
VBBV am 3 Okt. 2021
Make the matrix A as square
PetronasAMG
PetronasAMG am 3 Okt. 2021
so B you got here is it for when t =1? where is t=2? uptil t =5?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Linear Algebra finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by