FLOATREAD Read matrix from float file ssuming four byte floating point number

Usage: >> A = floatread(filename,size,'format',offset)

Inputs:
filename   
name of the file
size   
determine the number of float elements to be read and the dimensions of the resulting matrix. If the last element of 'size' is INF the size of the last dimension is determined by the file length. If size is 'square,' floatread attempts to read a square matrix.

Optional inputs:
'format'   
the option FORMAT argument specifies the storage format as defined by fopen(). Default format ([]) is 'native'.
offset   
offset in floats from the beginning of file (=0) to start reading (4-byte floats assumed). It uses fseek to read a portion of a large data file.

Author: Sigurd Enghoff, CNL / Salk Institute, La Jolla, 7/1998

See also: floatwrite, fopen()

See the matlab file floatread.m (may require other functions)

Back to functions