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

13 visualizaciones (últimos 30 días)
Lukas
Lukas el 2 de Dic. de 2023
Comentada: Star Strider el 2 de Dic. de 2023
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 comentario
Image Analyst
Image Analyst el 2 de Dic. de 2023
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?

Iniciar sesión para comentar.

Respuesta aceptada

Star Strider
Star Strider el 2 de Dic. de 2023
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 comentarios
Star Strider
Star Strider el 2 de Dic. de 2023
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (1)

Walter Roberson
Walter Roberson el 2 de Dic. de 2023
You might be able to take advantage of multibandread

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by