?? lec17mldemo1.m
字號(hào):
% MIT 18.335 - Lecture 17 MATLAB Demo 1
% The Method of Bisection
% Per-Olof Persson, November 7, 2006
format long
% Create symmetric matrix A
n=6;
randn('state',2)
A0=randn(n,n); A0=A0+A0';
A0,pause
% Reduce to tridiagonal
A=hess(A0);
A,pause
% Compute true eigenvalues
l=eig(A0);
l,pause
% Perform Sturm counts
x=[0,1,10,-10,0.35,0.36,0.35591311858441,0.35591311858440];
for i=1:length(x)
fprintf('Shift=%20.14f, Count=%d\n',x(i),sturmcount(A,x(i)));
pause
end
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -