function table = itable_read ( input_filename ) %% ITABLE_READ reads information from an integer table file. % % Modified: % % 22 October 2004 % % Author: % % John Burkardt % % Parameters: % % Input, character ( len = * ) INPUT_FILENAME, the name of the input file. % % Output, integer TABLE(M,N), the point coordinates. % [ m, n ] = itable_header_read ( input_filename ); if ( m <= 0 ) fprintf ( 1, '\n' ); fprintf ( 1, 'ITABLE_READ - Fatal error!\n' ); fprintf ( 1, ' The spatial dimension is not positive.\n' ); end if ( n <= 0 ) fprintf ( 1, '\n' ); fprintf ( 1, 'ITABLE_READ - Fatal error!\n' ); fprintf ( 1, ' The number of points is not positive.\n' ); end table(1:m,1:n) = itable_data_read ( input_filename );