1 function indices = regular_submatrix_indices(M,epsilon)
2 %
function indices = regular_submatrix:indices(M,epsilon)
4 %
function determining the indices of a submatrix of the square
5 % matrix M, such that M(indices,indices) is a regular matrix with
7 % than epsilon. For this, simple matrix-growing is performed
8 % starting with the left upper element. If
9 % addition of a row/column leads to too-small determinant, this is skipped.
11 % this routine can be applied on gram-matrices to detect linear
12 % independent vectors.
14 % Bernard Haasdonk 14.11.2007
19 ind_new = [indices, j];
20 B = M(ind_new,ind_new);
21 if abs(det(B))>=epsilon
27 % TO BE ADJUSTED TO NEW SYNTAX