How concatenate all the excel filles in one table in MATLAB
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ayman Mounir
am 11 Dez. 2020
Kommentiert: Ayman Mounir
am 11 Dez. 2020
I have many excel files in a folder, I want to concatenate them in one table in MATLAB.
Hint: if i am going to use vercat( readtable('file_name') ); i have to write all the files names this is the issue.
Thanks in advacne
0 Kommentare
Akzeptierte Antwort
Mathieu NOE
am 11 Dez. 2020
hi
this is an example
folder = cd;
folderout = [cd '\out'];
Files = dir(fullfile(folder, '*.xlsx')); % Use absolute path names
for ci = 1:length(Files);
data_file = readmatrix(Files(ci).name,'NumHeaderLines',15);
end
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!