How to read multiple CSVs files
Mostrar comentarios más antiguos
Hi,
I'm new in matlab.
I've 10 CSV files, I want to read them all in one sheet so I can calculate the min/max values from coloumn 10&11
I tried this code, and I thought to repeat it for all files:
D1 = csvread('Driver1.csv');
disp(D1);
but I got this error:
Index exceeds the number of array elements (13)
Respuestas (2)
madhan ravi
el 11 de En. de 2019
Editada: madhan ravi
el 11 de En. de 2019
0 votos
https://www.mathworks.com/help/matlab/import_export/process-a-sequence-of-files.html - sprintf() does the trick.
Jeremy Hughes
el 11 de En. de 2019
0 votos
I'd try tabularTextDatastore.
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!