fread: how to read n bytes from bin files
이전 댓글 표시
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
Alexander Voznesensky
2017년 7월 7일
채택된 답변
추가 답변 (1개)
Walter Roberson
2017년 7월 7일
0 개 추천
memmapfile allows you to declare patterns of fields and so is suitable for reading in repeated structures.
카테고리
도움말 센터 및 File Exchange에서 Low-Level File I/O에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!