fread: how to read n bytes from bin files
Mostrar comentarios más antiguos
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.
1 comentario
Alexander Voznesensky
el 7 de Jul. de 2017
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 7 de Jul. de 2017
0 votos
memmapfile allows you to declare patterns of fields and so is suitable for reading in repeated structures.
Categorías
Más información sobre Low-Level File I/O en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!