필터 지우기
필터 지우기

READ DATA OF MULTIPLE CSV FILES

조회 수: 1 (최근 30일)
AMAN GUPTA
AMAN GUPTA 2022년 3월 10일
답변: KSSV 2022년 3월 10일
I have 360 csv files named 1.csv, 2.csv,...360.csv. Each csv file has different no of rows. How can I read 360 csv file using for loop? Please help me.

채택된 답변

KSSV
KSSV 2022년 3월 10일
csvFiles = dir('*.csv') ;
N = length(csvFiles) ;
for i = 1:N
T = readtable(csvFiles(i).name) ;
% Do what you want
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by