www.gusucode.com > elmat工具箱matlab源码程序 > elmat/private/lotkin.m
function A = lotkin(n,classname) %LOTKIN Lotkin matrix. % A = GALLERY('LOTKIN',N) is the Hilbert matrix with its first row % altered to all ones. A is unsymmetric, ill-conditioned, and has % many negative eigenvalues of small magnitude. Its inverse has % integer entries and is known explicitly. % Reference: % M. Lotkin, A set of test matrices, M.T.A.C., 9 (1955), pp. 153-161. % % Nicholas J. Higham % Copyright 1984-2013 The MathWorks, Inc. A = hilb(n,classname); A(1,:) = 1;