%% Largest Singular Values
% The matrix A = delsq(numgrid('C',15)) is a symmetric positive definite matrix with singular values reasonably well-distributed in the interval (0 8). Compute the six largest singular values.

A = delsq(numgrid('C',15));
s = svds(A)

%
% Specify a second input to compute a specific number of the largest singular values.

s = svds(A,3)

% Copyright 2012 The MathWorks, Inc.