% unsigned 8-bit integer fd = fopen('binarytest_uchar.bin'); data = fread(fd,[2 inf],'uchar') fclose(fd); % 32-bit floating point fd = fopen('binarytest_float32.bin'); data = fread(fd,[2 inf],'float32') fclose(fd);