How to read multiple CSVs files
이전 댓글 표시
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)
답변 (2개)
madhan ravi
2019년 1월 11일
편집: madhan ravi
2019년 1월 11일
0 개 추천
https://www.mathworks.com/help/matlab/import_export/process-a-sequence-of-files.html - sprintf() does the trick.
Jeremy Hughes
2019년 1월 11일
0 개 추천
I'd try tabularTextDatastore.
카테고리
도움말 센터 및 File Exchange에서 Matrix Indexing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!