How can I speed up importing large .d files?
Mostrar comentarios más antiguos
Hi,
soon I'll have large files, about 50000x6 (more than one of them) and I'll have to work on them several times to plot different stuff. I've realised that "importdata" command is very slow and I've been recommended to use GNUPlot, but I would prefer to stick to MATLAB if possible. So, is there any command to load data to workspace in a faster way? Maybe using .xls instead of .d?
Thanks.
2 comentarios
Cedric
el 1 de Ag. de 2015
Could you provide a sample file?
Felix Lauwaert
el 1 de Ag. de 2015
Respuesta aceptada
Más respuestas (1)
per isakson
el 1 de Ag. de 2015
Editada: per isakson
el 1 de Ag. de 2015
1 voto
Does the file consist of header rows followed by data rows, which contains only numerical data? (No string data such as date time data.)
Try txt2mat, by Andres "txt2mat basically is a wrapper for sscanf, it quickly converts ascii files containing m-by-n numeric data, allowing for header lines"
3 comentarios
Felix Lauwaert
el 1 de Ag. de 2015
per isakson
el 1 de Ag. de 2015
Yes, please upload the six row file.
Felix Lauwaert
el 1 de Ag. de 2015
Categorías
Más información sobre Large Files and Big Data en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!