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