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, MTAC, 9 (1955), pp. 153-161.
%
%   Copyright (c) 1984-98 by The MathWorks, Inc.
%   $Revision: 1.5 $  $Date: 1997/11/21 23:29:47 $

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