How to read all .csv files from a folder in an order?

3 visualizaciones (últimos 30 días)
My programme is not reading the files in a proper order. The order of the files is sky_0, sky_1, sky_2,... sky_2001.
But it is reading in the order sky_0, sky_1, sky_10, sky_1000, sky_1001,... sky_1009, sky_10,...
Can anybody help me to read it in the right order?

Respuesta aceptada

Walter Roberson
Walter Roberson el 4 de Dic. de 2020
  14 comentarios
Walter Roberson
Walter Roberson el 9 de Dic. de 2020
One of your files doesn't have 5 columns
When the program stops look at N{idx} for the name of the problem file
Sateesh Kandukuri
Sateesh Kandukuri el 9 de Dic. de 2020
Thank you sir, I resolved the problem.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Cell Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by