fread
Read data in binary form to the file specified by the file descriptor fid.
Syntax
res = fread(fid)
res = fread(fid, sz, precision)
res = fread(fid, sz, precision, skip)
res = fread(fid, sz, precision, arch)
res = fread(fid, sz, precision, skip, arch)
[res, count] = fread(fid, sz, precision, skip, arch)
Input argument
fid - a file descriptor
sz - Dimensions of output array: scalar, [m,n] or [m, Inf]
precision - class of values to read
skip - number of bytes to skip
arch - a string specifying the data format for the file.
Output argument
res - a vector of floating point or integer type numbers
count - number of characters reads into res
Description
Read data in binary form to the file specified by the file descriptor fid.
supported architecture:
native , n: format of the current machine.
ieee-be, b: IEEE big endian.
ieee-le, l: IEEE little endian.
characters encoding uses fopen parameter.
Examples
See also
History
1.0.0
initial version
Author
Allan CORNET
Last updated