📄 ex4_10.m
字号:
% EX4_10.M Compare qr and eig commands to find eigenvalues% The script pauses after each qr iterationA = [1 -1 0 0;3 5 0 0;0 0 1 5;0 0 -1 1][V,D]=eig(A)pause% Compute QR sequence; R*Q converges to quasi-diagonalN=input('Number of Iterations, N= ')for I=1:N,[Q,R]=qr(A);,I,A=R*Q,pause,end%% Note: this is a good script to step through to determine% the operation of the qr command
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -