READ DATA OF MULTIPLE CSV FILES
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
AMAN GUPTA
el 10 de Mzo. de 2022
Respondida: KSSV
el 10 de Mzo. de 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.
0 comentarios
Respuesta aceptada
KSSV
el 10 de Mzo. de 2022
csvFiles = dir('*.csv') ;
N = length(csvFiles) ;
for i = 1:N
T = readtable(csvFiles(i).name) ;
% Do what you want
end
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Import and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!