How can I read data column by column from an ASCII file ?
Mostrar comentarios más antiguos
I have an ASCII file with text and numbers for example,
(Well, I dont know if it is called an ASCII file or not. Anyway I dont have a delimiter to separate the columns.)
123 456789455 667847457ddf55847
1 443467 894 55667847457ydf55554
4677 67894556 678474457ddf35847
144 3467 659455 66787457ydf12555
I want to read it as
12 3 45 678 9455 6 6784 7457 ddf 55847
1 44 34 67 894 556 6784 7457 ydf 55554
46 77 6 789 4556 6 7847 4457 ddf 35847
14 4 34 67 6594 55 6678 7457 ydf 12555
Thank you,
Kadeesa.
Respuestas (2)
Walter Roberson
el 23 de Sept. de 2011
1 voto
You will pretty much have to read it as a character array, extract the columns you want, and convert them to numeric (or not).
1 comentario
Kadeesa Kondotty
el 23 de Sept. de 2011
per isakson
el 23 de Sept. de 2011
0 votos
Categorías
Más información sobre Text Files 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!