필터 지우기
필터 지우기

write a binary file

조회 수: 1 (최근 30일)
Kevin
Kevin 2012년 4월 5일
Hi, I'd like to write a binary file from a set of text & numeric data. I know the byte "structure" or "frame" of the output binary file (first 3200 byte of that and then 400 bytes of this ...). I try it using fwrite but I can't figure out how to sort everything out. If someone can help I apreciate.
I'm on a lead with 'fwrite' & the 'skip' option and also do the maths. Knowing the number of byte of each data I want to write (some in int8 or float), I can find out how many byte I have to skip to fill properly the structure. I really enjoy when posting a problem gives me an idea to solve it...
Thanks
[EDITED, Jan Simon, answer appended to question]
  댓글 수: 1
Jan
Jan 2012년 4월 5일
Please post what you have tried already and ask as specific as possible. I cannot recommend a command to implement "400 bytes of this".

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by