フィルターのクリア

multiple tables textscan in a .csv file

2 ビュー (過去 30 日間)
franco otaola
franco otaola 2017 年 5 月 18 日
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 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by