How to read a binary file with header
조회 수: 4 (최근 30일)
이전 댓글 표시
[EDIT: 20110612 11:45 CDT - reformat - WDR]
Hello, i am recently have to read out a binary file. The whole information about this file is as:
Description: Raw Accelerometer Vector
Notes: This vector represents the raw binary values of the accelerometers before normalization, scaling and temperature compensation.
Field Format
Field Length
Data Descriptor 0x01
Message Data
Binary Offset Description Data Type Units
0 Accel 1 float bits
4 Accel 2 float bits
8 Accel 3 float bits
댓글 수: 2
Jan
2011년 6월 12일
What is your Matlab related question? What did you try so far and which problems occurred?
Walter Roberson
2011년 6월 12일
What is the length of the Field Format? Of the Field Length? Is the data descriptor a single byte? Is Message Data a field distinct from the accelerations?
I do not know of any floating point format that can fit in 4 bits. 4 _byte_ floating points are not uncommon, but the description does specifically say bits.
You do not present sufficient information for us to deduce how long the third acceleration is.
If you do have any multi-byte data, we need to know the byte order.
We need to know the floating point format.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!