I use the command eig(A) to calculate the eigenvalues of the matrix A, in which k,α,β,γ are variables,(adsbygoogle = window.adsbygoogle || []).push({});

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 how to do it? Thanks!

**Physics Forums | Science Articles, Homework Help, Discussion**

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Eigenvalues using matlab

**Physics Forums | Science Articles, Homework Help, Discussion**