fread
Read data from binary file
Syntax
Description
reads data from an open binary file into column vector A = fread(fileID)A and
positions the file pointer at the end-of-file marker. The binary file is indicated
by the file identifier, fileID. Use fopen to
open the file and obtain the fileID value. When you finish
reading, close the file by calling fclose(fileID).
additionally specifies the order for reading bytes or bits in the file.A = fread(___,machinefmt)