fread: how to read n bytes from bin files
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 7 Juil 2017
0 votes
memmapfile allows you to declare patterns of fields and so is suitable for reading in repeated structures.
Catégories
En savoir plus sur Large Files and Big Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!