function r8mat_plot ( m, n, a, title )

%*****************************************************************************80
%
%% r8mat_plot() "plots" an R8MAT.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    10 September 2009
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer M, the number of rows in A.
%
%    integer N, the number of columns in A.
%
%    real A(M,N), the matrix.
%
%    string TITLE, a title.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '%s\n', title );

  for jlo = 1 : 70 : n

    jhi = min ( jlo + 70-1, n );
    fprintf ( 1, '\n' );
    fprintf ( 1, '          ' );
    for j = jlo : jhi
      fprintf ( 1, '%d', mod ( j, 10 ) );
    end
    fprintf ( 1, '\n' );
    fprintf ( 1, '\n' );

    for i = 1 : m
      fprintf ( 1, '%6d    ', i );
      for j = jlo : jhi
        fprintf ( 1, '%c', r8mat_plot_symbol ( a(i,j) ) );
      end
      fprintf ( 1, '\n' );
    end
  end

  return
end
