I have a huge binary file which has records with multiple precision as {'Double','Double', 'Int32','Int8','Char'}. I have used memmapfile to read in the data but its painfully slow to read in the data. Is there a way to read the whole file through fread?
相关问题
- Extract matrix elements using a vector of column i
- How do you get R's null and residual deviance
- How to display an image represented by three matri
- Lazily Reading a File in D
- OpenCV - Is there an implementation of marker base
相关文章
- How to replace file-access references for a module
- How do I append metadata to an image in Matlab?
- Why is file_get_contents faster than memcache_get?
- Transactionally writing files in Node.js
- How can I write-protect the Matlab language?
- How to get path of the php binary on server where
- Unsigned char c = 255 is “11111111” or not?
- `std::sin` is wrong in the last bit
You can use the
'skip'
option of the FREAD function as well as FSEEK to read the records one "column" at-a-time:This code should work for any binary records file in general, you just have to specify the data types and byte length of the records fields. The result will be returned in a cell array containing the columns.