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!