Read Binary to Ascii, Write it again to a binary file

1 view (last 30 days)
I have a binary file, with the structure: integer x 4, character x 1, byte x 1, double x 8, double x 8, double x 8, double x 8, double x 8, unsigned character x 1
Now how can i read it in Matlab considering that there is not only one row with this structure, but thousand rows?
Then i want to write it to exactly the same binary file! I'm using the functions: fread and fwrite, but i don't get any reasonable result so far... Can anyone help?
  1 Comment
Walter Roberson
Walter Roberson on 31 Mar 2014
Are you wanting to update the file? Or are you wanting to make a copy of the file?

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 31 Mar 2014

Community Treasure Hunt

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

Start Hunting!