fread: how to read n bytes from bin files
Ältere Kommentare anzeigen
Hi! I have a binary file. It consists of records: 8 byte long, 4 byte float, 4 byte float, 4 byte float. I want to read the file into array Nx4. N - records number. How can I do it? I tried fread but without result.
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 7 Jul. 2017
0 Stimmen
memmapfile allows you to declare patterns of fields and so is suitable for reading in repeated structures.
Kategorien
Mehr zu Low-Level File I/O finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!