load a folder of excel files

2 ビュー (過去 30 日間)
Kamyar Mazarei
Kamyar Mazarei 2021 年 6 月 10 日
コメント済み: Stephen23 2021 年 6 月 11 日
hi
i have 146 excel files in a folder and want to load them all
i dont want to go through import window everytime, so is there a way to load all at once?

採用された回答

KSSV
KSSV 2021 年 6 月 10 日
excelFiles = dir('*.xlsx') ;
N = length(excelFiles) ;
for i = 1:N
file = excelFiles(i).name ;
T = readtable(file) ;
% do what you want
end
  2 件のコメント
Kamyar Mazarei
Kamyar Mazarei 2021 年 6 月 11 日
thank you
the T gives me a table, can i turn it into a matrix?
(the excels are all numbers not letters)
Stephen23
Stephen23 2021 年 6 月 11 日
"the T gives me a table, can i turn it into a matrix?"

サインインしてコメントする。

その他の回答 (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