chairmantom
Mechanical
- Mar 23, 2007
- 3
I have a file which starts with an ASCII header followed by binary 14-bit data. I wish to use Matlab open the file, convert the binary data to numbers on which some calculations are performed before saving the file. I need to leave the file in the same form as it was originally, i.e. with ASCII header followed by binary 14bit data.
Currently, I can open the file using textscan, and view the headers (while the binary part is nonsense), or I can open using fread, and view the binary data (with the header being nonsense).
I would really appreciate any advice about how to read and write files with contain both ASCII and binary data.
I hope that make some sort of sense.
Currently, I can open the file using textscan, and view the headers (while the binary part is nonsense), or I can open using fread, and view the binary data (with the header being nonsense).
I would really appreciate any advice about how to read and write files with contain both ASCII and binary data.
I hope that make some sort of sense.