function table = dtable_read ( input_filename ) %% DTABLE_READ reads information from a double precision table file. % % Modified: % % 13 May 2005 % % Author: % % John Burkardt % % Parameters: % % Input, string INPUT_FILENAME, the name of the input file. % % Output, real TABLE(M,N), the point coordinates. % [ m, n ] = dtable_header_read ( input_filename ); if ( m <= 0 ) fprintf ( 1, '\n' ); fprintf ( 1, 'DTABLE_READ - Fatal error!\n' ); fprintf ( 1, ' The spatial dimension is not positive.\n' ); end if ( n <= 0 ) fprintf ( 1, '\n' ); fprintf ( 1, 'DTABLE_READ - Fatal error!\n' ); fprintf ( 1, ' The number of points is not positive.\n' ); end table(1:m,1:n) = dtable_data_read ( input_filename, m, n ); return end