我被分配在 MATLAB 中计算 2x2 矩阵的特征值和特征向量:
我知道教科书的解决方案指出特征值 3 对应于一个特征向量, eig 5 对应于.
这就是我所做的。为什么我没有得到正确的特征向量?
% Define the matrix
A = [3 0;4 5];
% Find Eigenvalues
E1 = eig(A);
% Display Eigenvalues
disp('Eigenvalues of the matrix A:')
E1
% Determine Eigenvectors
[V,D] = eig(A);
% V1 corresponds to eigenvalue 1 and V2 corresponds to eigenvalue 2
V1 = V(:,1)
V2 = V(:,2)