How to get eigenvalues with varying coefficient
2 ビュー (過去 30 日間)
古いコメントを表示
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!
0 件のコメント
回答 (1 件)
VBBV
2021 年 10 月 3 日
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)
Divide the variable t into same size as number of elements of A
2 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!