Borrar filtros
Borrar filtros

Change txt2mat reading directory in a loop

1 visualización (últimos 30 días)
Jesmond
Jesmond el 26 de Dic. de 2012
Hi, I have 100 .csv files in the computer to be read, how do I make the script in MATLAB to read all the directory .csv files? The .csv files are named from DS0000 to DS0099.
I tried to make some code and it doesn't work...
for i=00:99;
data(i) = txt2mat('C:\Users\Jes\Desktop\Experiment\1412\DS00%i.csv');
end
Thanks.

Respuesta aceptada

Walter Roberson
Walter Roberson el 26 de Dic. de 2012
  1 comentario
Jesmond
Jesmond el 26 de Dic. de 2012
Thanks, the link you supplied has helped a lot. I have solved this problem.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre String Parsing 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!

Translated by