The function returns the following error codes:
0 ... everything is OK, the data has been loaded -1 ... the stream does not contain data conforming to the MatLab 5 format