function lvec_print ( n, a, title )

%*****************************************************************************80
%
%% lvec_print() prints a logical vector.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 April 2005
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the dimension of the vector.
%
%    logical A(N,1), the vector to be printed.
%
%    string TITLE, a title.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '%s\n', title );
  fprintf ( 1, '\n' );
  for i = 1 : n
    if ( a(i) )
      fprintf ( 1, '  %d  True\n', i );
    else
      fprintf ( 1, '  %d  False\n', i );
    end
  end

  return
end
