TABLE_READ
Read an ASCII matrix data file.


TABLE_READ is a MATLAB program which can read an ASCII file defining a matrix of data.

The file may contain comment lines, which begin with a '#' in column 1. Otherwise, each line of the file contains all the entries of the next row of the matrix. Thus, in particular, every non-comment line must have exactly the same number of values.

Here is an example of the kind of file that TABLE_READ expects to process:

    # cvt_02_00010.txt
    # created by CVT_DATASET
    # at April 11 2003  12:04:56.303 PM
    #
    #  Spatial dimension M =   2
    #  Number of points N =  10
    #
    #  Initial SEED =    123456789
    #  Initialization by UNIFORM.
    #  Sampling by UNIFORM.
    #  Number of sample points =       500000
    #  Number of sampling iterations =    100
    #  L2 norm of datadataset change on last step =   0.001501
    #
       0.168259       0.878328    
       0.834417       0.833004    
       0.521361       0.499896    
       0.506248       0.165244    
       0.180542       0.627410    
       0.179467       0.372410    
       0.505360       0.833925    
       0.834464       0.166314    
       0.841834       0.499935    
       0.169745       0.122347    
      
TABLE_READ automatically skips over the comments, and "realizes" that the array is dimensioned 10 by 2.

Usage:

x = table_read ( 'file_name' )
to define the array x to have the size and values of the array read from 'file_name'.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

CVT, a dataset directory which contains datasets that can be read by TABLE_READ.

FAURE, a dataset directory which contains datasets that can be read by TABLE_READ.

GRID, a dataset directory which contains datasets that can be read by TABLE_READ.

HALTON, a dataset directory which contains datasets that can be read by TABLE_READ.

HAMMERSLEY, a dataset directory which contains datasets that can be read by TABLE_READ.

IHS, a dataset directory which contains datasets that can be read by TABLE_READ.

LATIN_CENTER, a dataset directory which contains datasets that can be read by TABLE_READ.

LATIN_EDGE, a dataset directory which contains datasets that can be read by TABLE_READ.

LATIN_RANDOM, a dataset directory which contains datasets that can be read by TABLE_READ.

NIEDERREITER2, a dataset directory which contains datasets that can be read by TABLE_READ.

SOBOL, a dataset directory which contains datasets that can be read by TABLE_READ.

TABLE, a file format which is used for the input to TABLE_READ.

TABLE_BARPLOT_PPMA, a FORTRAN90 program which reads a table file and creates a PPMA bargraph of the data.

TABLE_BORDER, a FORTRAN90 program which can be used to add a border (of zero values) to a table file.

TABLE_COLUMNS, a FORTRAN90 program which can extract specific columns of data from a table file.

TABLE_DELAUNAY, a FORTRAN90 program which computes the Delaunay triangulation of a set of points.

TABLE_HISTOGRAM, a FORTRAN90 program which can make a histogram of a set of points stored in a table file.

TABLE_IO, a MATLAB library which can read or write a TABLE file.

TABLE_LATINIZE, a FORTRAN90 program which reads a file of points and creates a "latinized" version by adjusting the data.

TABLE_MERGE, a FORTRAN90 program which can read a table file and remove points that are duplicates or close.

TABLE_ORTHONORMALIZE, a FORTRAN90 program which reads a file of points and orthonormalizes the columns.

TABLE_QUALITY, a FORTRAN90 program which reads a file of points and computes the quality of dispersion.

TABLE_RECORD_MATCH, a FORTRAN90 program which can be used to find close records in a table file.

TABLE_SCALE, a FORTRAN90 program which can be used to multiply the entries of a table file by a scale vector.

TABLE_SHIFT, a FORTRAN90 program which can be used to shift the entries of a table file by a shift vector.

TABLE_STATS, a FORTRAN90 program which can read a table file and compute certain statistics.

TABLE_TET_MESH, a FORTRAN90 program which can read a table file of 3D data, and compute a tetrahedral mesh.

TABLE_TOP, a FORTRAN90 program which can read a table file of M-dimensional data and make a table of plots of all pairs of coordinates.

TABLE_UNBORDER, a FORTRAN90 program which can be used to remove the border from a table file.

TABLE_UNIFORM_NOISE, a FORTRAN90 program which can be used to add a uniform noise term to the data in a table file.

TABLE_VORONOI, a FORTRAN90 program which computes information about the Voronoi diagram of the points.

UNIFORM, is a dataset directory which contains datasets that can be read by TABLE_READ.

Source Code:

Examples and Tests:

You can go up one level to the MATLAB source codes.


Last revised on 02 November 2007.