How to read a binary file with header
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
[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 comentarios
Jan
el 12 de Jun. de 2011
What is your Matlab related question? What did you try so far and which problems occurred?
Walter Roberson
el 12 de Jun. de 2011
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.
Respuestas (0)
Ver también
Categorías
Más información sobre Call C++ from MATLAB en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!