How to import file.dat to matlab without delimiter
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi I have file.dat that contain data like this
7756|01/01/2016 00:15:00|182.422478353023|33554432
7756|01/01/2016 00:30:00|170.79956543853|33554432
How to extract these data in 4 column by delimiting '|' ?
0 Kommentare
Antworten (1)
Fangjun Jiang
am 14 Dez. 2017
out=importdata('file.dat','|')
2 Kommentare
Fangjun Jiang
am 14 Dez. 2017
>> importdata('file.dat','|')
ans =
struct with fields:
data: [2×2 double]
textdata: {2×2 cell}
colheaders: {'7756' '01/01/2016 00:30:00'}
Siehe auch
Kategorien
Mehr zu Whos finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!