import text file from different location, multiple delimiter
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I need to import .txt files from different folders, and then read multiple delimiters.
I tried textscan with fullfile, but the variable is empty.
file = fopen(fullfile(folderPath{k},FileNames{i}),'r')
temp = textscan(file,'%u64','MultipleDelimsAsOne',1,'Delimiter',{',''['']'})
fclose(file);
Result is empty file- it's not reading the data. wrong format spec? I tried different ones. Data is just integers.
file =
3
temp =
[0x1 uint64]
Data is in following format in .txt files:
[[ 1 , 2], [3 , 4] ....]]
0 Kommentare
Antworten (1)
Siehe auch
Kategorien
Mehr zu Text Files 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!