%% Smallest Eigenvalues of Sparse Matrix
% The matrix A = delsq(numgrid('C',15)) is a symmetric positive definite matrix with eigenvalues reasonably well-distributed in the interval (0 8). Compute the five smallest eigenvalues.

A = delsq(numgrid('C',15));  
d = eigs(A,5,'smallestabs')

% Copyright 2012 The MathWorks, Inc.