function c8vec_print ( n, a, label )

%*****************************************************************************80
%
%% c8vec_print() prints a C8VEC, with an optional title.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 September 2006
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of components of the vector.
%
%    complex A(N), the vector to be printed.
%
%    string LABEL, a title to be printed first.
%
  if ( 0 < s_len_trim ( label ) )
    fprintf ( 1, '\n' );
    fprintf ( 1, '%s\n', label );
  end

  fprintf ( 1, '\n' );
  for i = 1 : n
    fprintf ( 1, '  %6d  %s\n', i, num2str ( a(i) ) );
  end

  return
end
