필터 지우기
필터 지우기

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 CenterFile Exchange에서 Text Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by