Import data from text file
Mostrar comentarios más antiguos
I have a text files with two colums, when I used the
importfile(Data_Chan1.txt);
data=Data_Chan1(2:end,1:2);
I get error in reading the data.
5 comentarios
Walter Roberson
el 14 de En. de 2022
Have you experimented with readtable() ?
Ali Agha
el 14 de En. de 2022
Ali Agha
el 14 de En. de 2022
Ali Agha
el 14 de En. de 2022
You need to mung your txt file, first few lines are totally messed up. Maybe you manually modified it (?).
doc readtable
doc readmatrix
doc readlines % to get a feel on your data structure
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Standard File Formats 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!










