function i4vec_print_select ( n, a, select_num, select, title )

%*****************************************************************************80
%
%% i4vec_print_select() prints selected elements of an I4VEC.
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    09 July 2017
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of components of the vector.
%
%    integer A(N), the vector to be printed.
%
%    integer SELECT_NUM, the number of selected elements.
%
%    integer SELECT(SELECT_NUM), the indices of the vector to be printed.
%
%    string TITLE, a title.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Selected vector printout:\n' );
  if ( 0 < length ( title ) )
    fprintf ( 1, '\n' );
    fprintf ( 1, '%s\n', title );
  end
  fprintf ( 1, '\n' );

  for i = 1 : select_num
    fprintf ( 1, '  %6d: %6d  %10d\n', i, select(i), a(select(i)) );
  end

  return
end
