Let’s say we have a 3 x 3 matrix which is: This is because Matlab has the function eig that returns the eigenvalue. Matlab code for eigenvalue and eigenvectorsĬalculating the eigenvalue and eigenvector of a matrix in Matlab is very easy. X is the eigen vector and $\alpha$ is the eigen value. The basic equation of eigenvalues and eigenvector is given by: The eigenvector is a vector that undergoes pure scaling without any rotation, while the scaling factor is the eigenvalue. In this case 2, the resultant is scaled but not rotated. We just multiplied a matrix and a vector, and got the result to be scaled and rotated compared to x. Now, what is the graph telling you? Do you notice that the resultant vector has been scaled and rotated compared to x? ![]() I have plotted the graph for easier understanding and interpretation. ![]() In the graph above, we consider two cases the first case is if x is: We have a matrix A product and a vector x as Ax.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |