フィルターのクリア

Reading excel files in a directory

2 ビュー (過去 30 日間)
Danielle Leblanc
Danielle Leblanc 2011 年 7 月 19 日
I have many excel files (.xlsx format) in a directory with names R1,R2,R3....R89. Is it possible to read them one by one to execute certain commands and save them back without having to do it manually?

採用された回答

Fangjun Jiang
Fangjun Jiang 2011 年 7 月 19 日
Something like this:
for k=1:89
FileName=['R',num2str(k)];
data=xlsread([FileName,'.xlsx']);
% do stuff on data
xlswrite([FileName,'_Output.xlsx'],data);
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by