function Feb11Lec()
% Eigenvalues and symmetric positive definiteness
n = 6;
for kappa = logspace(1,8,8)
    % Generate a symmetric positive definite matrix with condition kappa...
    A = gallery('randsvd',n,-kappa);
    clc
    % Display its eigenvalues and cholesky factor...
    format long
    eigA = eig(A)
    fprintf('cond(A) = %10.1f\n',kappa)
    format short
    G = chol(A,'lower')
    pause
end