Merge Csv files.

1 visualizzazione (ultimi 30 giorni)
Mar Zah
Mar Zah il 24 Mag 2019
Risposto: KSSV il 24 Mag 2019
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

Risposte (1)

KSSV
KSSV il 24 Mag 2019
csvfiles = dir('*.csv') ;
N = length(csvfiles) ;
iwant = cell(N,1) ;
for i = 1:N
iwant{i} = xlsread(csvfiles(i).name) ;
end
iwant = cell2mat(iwant) ;

Categorie

Scopri di più su Data Import and Export in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by