%*************************************************************************
% Generates a Hilbert matrix of size N
%*************************************************************************

function A = Hilbert_matrix(N)
  
A=zeros(N,N);

for i = 1:N
    for j=1:N  
        A(i,j) =  1/(i+j-1);
    end
end

