MATLAB: Symmetric Eigenvalue Problem

eigenvaluesymmetric

How do you calculate the symmetric eigenvalue problem in Matlab? I tried using the eig(A) and interestingly enough i get the right numbers but the signs are wrong on some of the numbers. I'm not sure what the difference really is. I was wondering if anyone had any ideas on why this might be happening. Thanks for your help!

Best Answer

"eig" is definitely the correct function, and I think you can rest assured that the output is correct. Can you post a simple example that you think is wrong?