multiple tables textscan in a .csv file
1 次查看(过去 30 天)
显示 更早的评论
hello, i am reading different tables from a same .csv file. (i am attaching an example) the code i was using for other .csv was
fileName='105,34g Na2CO2 Test 3 12_05_2017 19_09.csv'
fileID = fopen(fileName,'r','n','UTF16-LE');
fseek(fileID, 2, 'bof');
dataArray = textscan(fileID, '%s%s%s%s%s%s%s%s%s', 'Delimiter', '\t', 'HeaderLines' ,6, 'ReturnOnError', false);
the thing is that before it was a big file with only one table and the data began in the line 6. but in the new file there is more than one table. i am looking a way to read each table and stock it in different arrays. so it would be concerning only the "textscan". notice that the quantity of the tables inside the .csv would variate with each file. but the quantity of lines for each table would be the same.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Text Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!