Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Reading poorly formatted txt file

3 visualizaciones (últimos 30 días)
Jérôme
Jérôme el 10 de Dic. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Hi,
I've trouble importing data from a big txt file. Here is the content of the file : http://pastebin.com/LQKGP0am
So it is 18 columns of numerical data, separated by spaces (actually all entries are in one row each, but on pastebin the last two columns go to the next line.)
Since there is no clear separator (like comma or anything), I have trouble importing it in its entirety in a big matrix without losing parts and so on. Any help would be greatly welcomed.
Thanks in advance.
  1 comentario
per isakson
per isakson el 10 de Dic. de 2012
Editada: per isakson el 10 de Dic. de 2012
The format looks ok to me. Multiple space as list delimiter shouldn't cause problems. If you have a few files use Import data interactively. If you have many use textscan. Read the documentation carefully.

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by