필터 지우기
필터 지우기

Merging multiple csv files into one mat file

조회 수: 9 (최근 30일)
Ahmad Hasnain
Ahmad Hasnain 2019년 4월 18일
답변: KSSV 2019년 4월 18일
I have multiple csv files (37 files). Every csv file has a column and it want to merge it into one mat file so that I get a mat file with 37 columns. How can I do that?

채택된 답변

KSSV
KSSV 2019년 4월 18일
csvfiles = dir('*.csv') ;
N = length(csvfiles) ;
A = cell(N,1) ;
for i = 1:N
A{i} = csvread(csvfiles(i).name)
end

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by