How to read a binary file with header

조회 수: 4 (최근 30일)
Chunling
Chunling 2011년 6월 12일
[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
Jan 2011년 6월 12일
What is your Matlab related question? What did you try so far and which problems occurred?
Walter Roberson
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 CenterFile Exchange에서 Call C++ from MATLAB에 대해 자세히 알아보기

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by