function dtable_data_write ( output_unit, m, n, table ) %% DTABLE_DATA_WRITE writes a table to a double precision table file. % % Discussion: % % This routine writes a single line of output for each point, % containing its spatial coordinates. % % Licensing: % % This code is distributed under the GNU LGPL license. % % Modified: % % 22 October 2004 % % Author: % % John Burkardt % % Parameters: % % Input, integer OUTPUT_UNIT, the output unit. % % Input, integer M, the spatial dimension. % % Input, integer N, the number of points. % % Input, real TABLE(M,N), the points. % for j = 1 : n for i = 1 : m fprintf ( output_unit, '%24.16f ', table(i,j) ); end fprintf ( output_unit, '\n' ); end