Calculating Eigenvalues And Eigenvectors Of Matrices In MatLab(Illustrated Expression)
Eigenvalues and eigenvectors are generally used in lots of engineering areas. It is very hard to calculate eigenvectors and eigenvalues by hand compared to solving with Matlab. Matlab has a special command to do it. In this article we will show you how to calculate Eigenvalues and Eigenvectors of a matrix in Matlab.
How To Calculate Eigenvalues And Eigenvectors In Matlab?
We created a matrix ‘a’ shown by green arrow above to show you how to calculate the eigenvalues and eigenvector of it. Eigenvector and eigenvalues are calculated with codes like in green box in Matlab.
If we take a look at the results, the eigenvalue of matrix ‘a’ is directly calculated in Matlab with eig() command.
Also we calculated the eigenvectors of matrix ‘a’ in the form of variables ‘A’ and ‘B’. We assigned these variables in the eig() code for eigenvector results as shown by red arrow and blue arrow above in Matlab.
‘B’ matrix includes eigenvectors of matrix ‘a’ at its diagonal values, and ‘A’ also includes the whole eigenvectors of matrix ‘a’ in it.
So it is very basic to calculate the Eigenvectors and Eigenvalues of a matrix in Matlab.
Leave your comments and questions below!