i have 1000 csv file and want to export these files into matlab . How can i do ?
please help me in this.

 채택된 답변

Jan
Jan 2022년 3월 7일

0 개 추천

Do you mean "import"? What about csvread or the modern readtable?

댓글 수: 2

Deepesh Kumar Gupta
Deepesh Kumar Gupta 2022년 3월 7일
yes, i mean import. I have a folder name "thetha" ,inside a folder there are 1000 csv file named 1, 2, 3.....1000 , How can i import these files into matlab?
Jan
Jan 2022년 3월 7일
Are the files really calles 1,2,3,...1000 or '1.csv', and so on? Please do not let the readers guess the details.
folder = 'C:\theta';
list = dir(fullfile(folder, '*.csv')); % Or without '.csv' ?
data = cell(1, numel(list));
for k = 1:numel(list)
data{k} = csvread(fullfile(folder, list(k).name));
end

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Environment and Settings에 대해 자세히 알아보기

질문:

2022년 3월 7일

댓글:

Jan
2022년 3월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by