function i4col_sort2_a_test ( )

%*****************************************************************************80
%
%% I4COL_SORT2_A_TEST tests I4COL_SORT2_A;
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    14 April 2009
%
%  Author:
%
%    John Burkardt
%
  m = 6;
  n = 4;

  b = 0;
  c = 20;
  seed = 123456789;

  fprintf ( 1, '\n' );
  fprintf ( 1, 'I4COL_SORT2_A_TEST\n' );
  fprintf ( 1, '  For a rectangular integer matrix:\n' );
  fprintf ( 1, '  I4COL_SORT2_D sorts the elements of the columns.\n' );

  [ a, seed ] = i4mat_uniform_ab ( m, n, b, c, seed );

  i4mat_print ( m, n, a, '  The matrix:' );

  a = i4col_sort2_a ( m, n, a );

  i4mat_print ( m, n, a, '  The element-sorted column matrix:' );

  return
end

johannesgerer
github-repos/MATLAB/johannesgerer-jburkardt-m/jburkardt-m-1726deb4a34dd08a49c26359d44ef47253f006c1/i4lib/i4col_sort2_a_test.m
jburkardt-m
github-repos/MATLAB/johannesgerer-jburkardt-m
1726deb4a34dd08a49c26359d44ef47253f006c1