function r8gd_print_some_test ( )

%*****************************************************************************80
%
%% R8GD_PRINT_SOME_TEST tests R8GD_PRINT_SOME.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    18 July 2016
%
%  Author:
%
%    John Burkardt
%
  n = 10;
  ndiag = 4;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'R8GD_PRINT_SOME_TEST\n' );
  fprintf ( 1, '  R8GD_PRINT_SOME prints some of an R8GD matrix.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Matrix order N            = %d\n', n );
  fprintf ( 1, '  Number of diagonals NDIAG = %d\n', ndiag );
%
%  Set the matrix.
%
  offset = [ -2, 0, 1, n - 1 ];

  i4vec_print ( ndiag, offset, '  The offset vector:' );

  a = r8gd_indicator ( n, ndiag, offset );

  r8gd_print_some ( n, ndiag, offset, a, 3, 3, 6, 6, '  Rows 3-6, Cols 3-6:' );

  return
end
