필터 지우기
필터 지우기

Change txt2mat reading directory in a loop

조회 수: 1 (최근 30일)
Jesmond
Jesmond 2012년 12월 26일
Hi, I have 100 .csv files in the computer to be read, how do I make the script in MATLAB to read all the directory .csv files? The .csv files are named from DS0000 to DS0099.
I tried to make some code and it doesn't work...
for i=00:99;
data(i) = txt2mat('C:\Users\Jes\Desktop\Experiment\1412\DS00%i.csv');
end
Thanks.

채택된 답변

Walter Roberson
Walter Roberson 2012년 12월 26일
  댓글 수: 1
Jesmond
Jesmond 2012년 12월 26일
Thanks, the link you supplied has helped a lot. I have solved this problem.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by