Import .csv files in my folder directory.
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
상훈 송
el 25 de Abr. de 2022
Editada: Sulaymon Eshkabilov
el 25 de Abr. de 2022
Hi. I would like to ask question about importing numerous csv files using matlab. In my folder directory, there exists csv files like 1.csv, 2.csv, 3.csv ---.
How can I import all those datas into workspace??
I know the function readmatrix, but it takes so much time for doing that job for every datas...
Best regard.
Respuesta aceptada
Sulaymon Eshkabilov
el 25 de Abr. de 2022
Editada: Sulaymon Eshkabilov
el 25 de Abr. de 2022
probably, you'd better use a loop, e.g.:
for ii=1:Number_csv % Number of *.csv files
D{ii}=readmatrix(strcat(num2str(ii), '.csv'));
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!