function i4st_print_some_test ( )

%*****************************************************************************80
%
%% i4st_print_some_test() tests i4st_print_some().
%
%  Discussion:
%
%    The matrix is:
%
%      11  12   0   0  15
%      21  22   0   0   0
%       0   0  33   0  35
%       0   0   0  44   0
%      51   0  53   0  55
%
%    The index vectors are 1 based, and so have to be converted to
%    0-base before being written.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    27 September 2018
%
%  Author:
%
%    John Burkardt
%
  m = 5;
  n = 5;
  nst = 11;
  ast = [ 51; 12; 11; 33; 15; 53; 55; 22; 35; 44; 21 ];
  ist = [ 5; 1; 1; 3; 1; 5; 5; 2; 3; 4; 2 ];
  jst = [ 1; 2; 1; 3; 5; 3; 5; 2; 5; 4; 1 ];

  fprintf ( 1, '\n' );
  fprintf ( 1, 'i4st_print_some_test():\n' );
  fprintf ( 1, '  i4st_print_some() prints some of an I4ST file.\n' );

  ist(1:nst) = ist(1:nst) - 1;
  jst(1:nst) = jst(1:nst) - 1;

  i_min = min ( ist );
  i_max = max ( ist );
  j_min = min ( jst );
  j_max = max ( jst );

  i4st_header_print ( i_min, i_max, j_min, j_max, m, n, nst );

  ilo = 2;
  ihi = 3;
  jlo = 2;
  jhi = 4;
  i4st_print_some ( ilo, ihi, jlo, jhi, nst, ist, jst, ast, '  A(2:3,2:4)' );

  return
end
