multiple tables textscan in a .csv file

1 view (last 30 days)
franco otaola
franco otaola on 18 May 2017
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.

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by