precision of a binary file or text file? "fread"
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Farz Tak
el 2 de Nov. de 2016
Respondida: upol
el 17 de Feb. de 2018
Hi
I am using fopen/fread to read and store my files. I could read them with "importdata" but that was super slow. For using fread, I do not know the precision of the data. How can I know the precision? Attached is one of the files.
Thanks a lot, I have been working on it for two days and could not figure it out yet.
Zeinab
0 comentarios
Respuesta aceptada
Jan
el 2 de Nov. de 2016
This is an ASCII-file. Then the precision is not meaningful, because it matters binary files only. Do not use fread, but fscanf.
Más respuestas (1)
upol
el 17 de Feb. de 2018
fscanf doesnt support into matlab c coder. what other option do i have?
0 comentarios
Ver también
Categorías
Más información sobre Low-Level File I/O en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!