ex4_9.m
来自「Advanced Engineering Mathematics using M」· M 代码 · 共 13 行
M
13 行
% EX4_9.M Find eigenvalues and eigenvectors% for matrix A=[1 -1 0;0 1 1;0 0 -2]% The M-file corresponds to the session in Example 4.9clearA=[1 -1 0;0 1 1;0 0 -2]EIG=eig(A) % Determine eigenvaluesPOLY=poly(A) % and characteristic polynomial[V,D]=eig(A) % V contains eigenvectors % diag(D) is eigenvalues% % Take third column and set V(1,3)=1V3=V(:,3)v33=V3/V(1,3)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?