フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how can i read 20 files form excel for matlab together

1 回表示 (過去 30 日間)
sabah
sabah 2015 年 2 月 25 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
i have code for read one file [a,b,c]=xlsread('myfile.xlsx') save myfile c ;its work but i want read 20 files together in one file where every file have 500*2 data

回答 (2 件)

dpb
dpb 2015 年 2 月 25 日

Sad Grad Student
Sad Grad Student 2015 年 2 月 25 日
編集済み: Sad Grad Student 2015 年 2 月 25 日
cd to the directory containing all files
allfiles = dir; allfiles(1:2) = []; %this is because allfiles(1) = . & allfiles(2) = ..
open a new file in write mode say foo
loop through allfiles like:
for i = 1:20
f = xlsread(allfiles(i).name)
append contents of f to foo using xlswrite
end

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by