Filter löschen
Filter löschen

READ DATA OF MULTIPLE CSV FILES

1 Ansicht (letzte 30 Tage)
AMAN GUPTA
AMAN GUPTA am 10 Mär. 2022
Beantwortet: KSSV am 10 Mär. 2022
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.

Akzeptierte Antwort

KSSV
KSSV am 10 Mär. 2022
csvFiles = dir('*.csv') ;
N = length(csvFiles) ;
for i = 1:N
T = readtable(csvFiles(i).name) ;
% Do what you want
end

Weitere Antworten (0)

Kategorien

Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by