fread
Read a real matrix from a a binary file.
(data, count)=fread(fi, vsize, format)
Inputs
fi The reference to a file that has been opened for input in the binary mode.
vsize A two dimensional array specifying size of the matrix to read.
format One of the following strings optionally preceded by "u" to indicate unsigned data input: "double", "float", "long", "int", "byte", "char" .
Outputs
data The matrix read from the file according to the specified format and size.
count The number of elements read.


Example
>>a=rand(4,5)
>>fi=fopen("freadtest.d","wb")
>>fwrite(fi,a,"double")
        20
>>fclose(fi)
>>fi=fopen("freadtest.d","rb")
>>(d,n)=fread(fi,[4,5],"double")
>>n
        20
>>norm(d-a)
0