User`s guide

fread
Purpose Read open target PC file
Syntax MATLAB command line
A = fread(file_obj,file_ID)
A = file_obj.fread(file_ID)
A = fread(file_obj, file_ID, offset, numbytes)
A = file_obj.fread(file_ID, offset, numbytes)
Arguments
file_obj
Name of the xpctarget.fs object.
file_ID
File identifier of the file to read.
offset
Position from the beginning of the file from which
fread can start to read.
numbytes
Maximum number of bytes fread can read.
Description Method of xpctarget.fs objects. From the host PC, A=
fread(file_obj,file_ID)
or A = file_obj.fread(fil e_ID ) reads
all the binary data from the file on the target PC and writes it into
matrix
A.Thefile_ID argument is the file identifier associated with an
open file (see
fopen).
From the host PC,
A = fread(file_obj, file_ID, offset,
numbytes)
or A = file_obj.fre ad(file_ID, offset, numbytes)
reads a block of by tes from file_ID and writes the block into matrix A.
The
offset argument specifies the position from the beginning of the
file from which this function can start to read.
numbytes specifies the
maximum numbe r of bytes to read. To get a count of the total number
of bytes read into
A,usethefollowing:
count = length(A);
18-22