Merge Csv files.

32 ビュー (過去 30 日間)
Mar Zah
Mar Zah 2019 年 5 月 24 日
回答済み: KSSV 2019 年 5 月 24 日
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

回答 (1 件)

KSSV
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) ;

カテゴリ

Help Center および File ExchangeDatabase Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by