readtable is jumping to a new row after delimiter
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
HD
am 18 Jan. 2019
Beantwortet: madhan ravi
am 18 Jan. 2019
Hi, I am using readtabe to read a dat file.
i am using Data = readtable(fullfile(filepath,filename);
it should read
'my first line is this'
'my second line is different'
'my third line is a measurment = 1' etc.
instead it is reading
'my'
'first'
'line' etc ...
I don't understand why especilly it was working properly this morning.
I tried adding, 'delimiter', 'space but gave the same result.
Any idea why and how to solve it?
thank you
0 Kommentare
Akzeptierte Antwort
Cris LaPierre
am 18 Jan. 2019
Bearbeitet: Cris LaPierre
am 18 Jan. 2019
A delimiter is what indicates where to separate words. It seems the delimiter is already a space, as you are already getting the output to be one word at a time. It's hard to say what you should use instead, since we'd need to see the actual data file.
In the meantime, try using the Import Tool to see if using the user interface you can get the desired output. That might help you see what settings to use for readtable.
0 Kommentare
Weitere Antworten (1)
madhan ravi
am 18 Jan. 2019
readtable('sample.txt','delimiter','\n','ReadVariableNames',0)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!