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 - The Fusion of Science and Community**

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

# Eigenvalues using matlab

Loading...

Similar Threads - Eigenvalues using matlab | Date |
---|---|

Is assembly language still being used? | Sunday at 5:51 PM |

Python Simulating an infinite well | Jun 1, 2017 |

Finding eigenvalues with QR method | Aug 5, 2015 |

Eigenvalue based blob detector | Jul 9, 2015 |

LAPACK dgeev: parameter had illegal value | May 26, 2015 |

**Physics Forums - The Fusion of Science and Community**