function i4st_print_some ( row1, row2, col1, col2, nst, ist, jst, ast, title )

%*****************************************************************************80
%
%% i4st_print_some() prints some of an I4ST file.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 September 2018
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer ROW1, ROW2, the first and last rows to print.
%
%    integer COL1, COL2, the first and last columns to print.
%
%    integer NST, the number of nonzeros.
%
%    integer IST(NST), COL(NST), the row and column indices.
%
%    integer A(NST), the nonzero values.
%
%    string TITLE, a title.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '%s\n', title );
  fprintf ( 1, '\n' );

  for k = 1 : nst
    if ( row1 <= ist(k) && ist(k) <= row2 && col1 <= jst(k) && jst(k) <= col2 )
      fprintf ( 1, '  %8d  %8d  %8d  %8d\n', k, ist(k), jst(k), ast(k) );
    end
  end

  return
end
