Load data from txt
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Artyom
el 15 de En. de 2014
Respondida: Walter Roberson
el 15 de En. de 2014
Hi. I have a lot of data in .txt files. Now I'm using this code to read and import data to matlab:
fid=fopen(Data);
Result=fscanf(fid,Mask,ScanDimension)';
fclose(fid);
Is there any other ways, that may be faster than this one? Maybe save file as binary or write dll, which will read data and send it to matlab in c++? Thank you.
0 comentarios
Respuesta aceptada
Walter Roberson
el 15 de En. de 2014
binary files would be faster. However, if each file is being read only once, it might not be worth the time to convert to binary. If files are used over and over again (possibly on different runs) then Yes, converting to binary is likely to be worthwhile.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Whos en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!