function A = lotkin(n)
%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, Dec 1999.
%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.8 $  $Date: 2000/06/01 16:46:25 $

A = hilb(n);
A(1,:) = ones(1,n);
