fwrite
Write a real matrix to a file as binary data.
count=fwrite(fi, v, format)
Inputs
fi The reference to a file that has been opened for input in the binary mode.
v The matrix to written.
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 that have been written.


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