필터 지우기
필터 지우기

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