function subpak_test044 ( ) %*****************************************************************************80 % %% TEST044 tests R8COL_TO_R8VEC. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 19 April 2009 % % Author: % % John Burkardt % m = 3; n = 4; fprintf ( 1, '\n' ); fprintf ( 1, 'TEST044\n' ); fprintf ( 1, ' R8COL_TO_R8VEC converts an array of columns to a vector.\n' ); fprintf ( 1, '\n' ); for i = 1 : m for j = 1 : n a(i,j) = 10 * i + j; end end r8mat_print ( m, n, a, ' The array of columns:' ); x = r8col_to_r8vec ( m, n, a ); r8vec_print ( m*n, x, ' The resulting vector of columns:' ); return end