How to read a binary file with header
4 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
[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 Commenti
Jan
il 12 Giu 2011
What is your Matlab related question? What did you try so far and which problems occurred?
Walter Roberson
il 12 Giu 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.
Risposte (0)
Vedere anche
Categorie
Scopri di più su Call C++ from MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!