For d X/d t=AX + XB+ C, where A, B, and C are the given 6*6 matrices,
I use the following way to solve it,
let X= X11 X12 X13 X14 X15 X16
X21 X22 X23 X24 X25 X26
X31 X32 X33 X34 X35 X36
X41 X42 X43 X44 X45 X46
X51 X52 X53 X54 X55 X56
X61...
I use the command eig(A) to calculate the eigenvalues of the matrix A, in which k,α,β,γ are variables,
A=[-0.5*k -i*α 0;-i*α -0.5*γ -i*β;0 i*β -0.5k];
eig(A)
but the MATLAB shows "Undefined function or variable 'k'."
I don't know how to define the variables k,α,β,γ.
Can anyone tell me...