Merge Csv files.
조회 수: 32 (최근 30일)
이전 댓글 표시
Hi i have 35 csv files of the same structure that i want to merge all in one csv table.
what is the equivalent command for that?
Thank you
댓글 수: 0
답변 (1개)
KSSV
2019년 5월 24일
csvfiles = dir('*.csv') ;
N = length(csvfiles) ;
iwant = cell(N,1) ;
for i = 1:N
iwant{i} = xlsread(csvfiles(i).name) ;
end
iwant = cell2mat(iwant) ;
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Database Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!