how do i merge multiple excel files into a single input
1 回表示 (過去 30 日間)
古いコメントを表示
I have multiple files that i would like to merge as a single input. What function do i have to use?
0 件のコメント
回答 (1 件)
KSSV
2018 年 1 月 16 日
Read about xlsread . With this you can read excel data into matlab.
files = dir('*.xls') ; % Excel file extension
N = length(files) ; % total files
iwant = cell(N,1) ;
for i = 1:N
[num,txt,raw] = xlsread(files(i).name) ;
iwant{i} = num ;
end
Now you have all the data of excel files in iwant. You can write that into a single file.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Import from MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!