fread: how to read n bytes from bin files
Mostra commenti meno recenti
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.
Risposta accettata
Più risposte (1)
Walter Roberson
il 7 Lug 2017
0 voti
memmapfile allows you to declare patterns of fields and so is suitable for reading in repeated structures.
Categorie
Scopri di più su Large Files and Big Data in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!