Borrar filtros
Borrar filtros

How can I import a csv with unknown dimension?

3 visualizaciones (últimos 30 días)
Johnny Birch
Johnny Birch el 29 de Nov. de 2018
Comentada: Johnny Birch el 29 de Nov. de 2018
I have several *.csv files which I need to import. Each csv file should be imported as one cell array of strings. The problem is that the number of rows and columns can vary. How can i write a script which allow the import regardsless of the csv dimension?
Thanks

Respuestas (1)

madhan ravi
madhan ravi el 29 de Nov. de 2018
https://www.mathworks.com/help/matlab/import_export/process-a-sequence-of-files.html follow the instructions in the link use a cell array and mention the correct format which is csv
  1 comentario
Johnny Birch
Johnny Birch el 29 de Nov. de 2018
I am not sure what you mean. I dont have trouble importing several files in a loop. I have trouple making a script where you dont have to specify the number of rows and columns as these can vary between the files.

Iniciar sesión para comentar.

Categorías

Más información sobre Data Import and Export en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by