How do I open .bin file and transform data to .txt file

조회 수: 12 (최근 30일)
Lukas
Lukas 2023년 12월 2일
댓글: Star Strider 2023년 12월 2일
I would like to open bin file with these specification:
Sampling frequency [Hz]:5000
Datatype: 4-byte float
Channels:57
Samples:3000000
What do I need is to have every channel in one column. I was trying to use fread and fopen but I miss something.
Thanks!
  댓글 수: 1
Image Analyst
Image Analyst 2023년 12월 2일
Can youi possibly get a file with far fewer samples so it can be uploaded? Needs to be less than 5 MB. What application created the file? Can you just tell it to collect less data?

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

채택된 답변

Star Strider
Star Strider 2023년 12월 2일
A ‘4-byte float’ is probably 'float32' (possibly 'real*4'), so one of those should work for the ‘precision’ argument in fread.
Use the zip function to enclose it in a .zip file, then use the ‘paperclip’ icon (to the right of the Σ icon) in the top toolstrip to upload it here. Then it be available to work with and help you read it.
  댓글 수: 10
Star Strider
Star Strider 2023년 12월 2일
As always, my pleasure!

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

추가 답변 (1개)

Walter Roberson
Walter Roberson 2023년 12월 2일
You might be able to take advantage of multibandread

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

태그

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by