フィルターのクリア

READ DATA OF MULTIPLE CSV FILES

1 回表示 (過去 30 日間)
AMAN GUPTA
AMAN GUPTA 2022 年 3 月 10 日
回答済み: KSSV 2022 年 3 月 10 日
I have 360 csv files named 1.csv, 2.csv,...360.csv. Each csv file has different no of rows. How can I read 360 csv file using for loop? Please help me.

採用された回答

KSSV
KSSV 2022 年 3 月 10 日
csvFiles = dir('*.csv') ;
N = length(csvFiles) ;
for i = 1:N
T = readtable(csvFiles(i).name) ;
% Do what you want
end

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Import and Analysis についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by