function a = c8mat_indicator ( m, n )

%*****************************************************************************80
%
%% c8mat_indicator() returns the C8 indicator matrix.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    01 November 2008
%
%  Author
%
%    John Burkardt
%
%  Input:
%
%    integer M, N, the number of rows and columns.
%
%  Output:
%
%    complex A(M,N), the matrix.
%
  a = zeros ( m, n );
  imaginary = sqrt ( - 1 );

  for j = 1 : n
    for i = 1 : m
      a(i,j) = i + j * imaginary;
    end
  end

  return
end
