필터 지우기
필터 지우기

Import .csv files in my folder directory.

조회 수: 4 (최근 30일)
상훈 송
상훈 송 2022년 4월 25일
편집: Sulaymon Eshkabilov 2022년 4월 25일
Hi. I would like to ask question about importing numerous csv files using matlab. In my folder directory, there exists csv files like 1.csv, 2.csv, 3.csv ---.
How can I import all those datas into workspace??
I know the function readmatrix, but it takes so much time for doing that job for every datas...
Best regard.

채택된 답변

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022년 4월 25일
편집: Sulaymon Eshkabilov 2022년 4월 25일
probably, you'd better use a loop, e.g.:
for ii=1:Number_csv % Number of *.csv files
D{ii}=readmatrix(strcat(num2str(ii), '.csv'));
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by