I have multiple (about 15) csv files that I would like to outerjoin. I would like to know whether there is a simple way to write the code.

댓글 수: 5

Rik
Rik 2018년 6월 6일
I'dd suggest writing a loop. What did you already try?
alpedhuez
alpedhuez 2018년 6월 6일
편집: alpedhuez 2018년 6월 6일
Suppose I have tables A, B, C, ..... What does this loop look like?
Stephen23
Stephen23 2018년 6월 6일
편집: Stephen23 2018년 6월 6일
Z = load first CSV file
for k = 2:number of CSV files
A = load next CSV file
Z = outerjoin(Z,A);
end
alpedhuez
alpedhuez 2018년 6월 6일
Yes. Then the filename should be well-behaved and indexed with k?
Stephen23
Stephen23 2018년 6월 6일
편집: Stephen23 2018년 6월 6일
" Then the filename should be well-behaved"
I don't know what a "well-behaved" filename is. There is absolutely no requirement that the filenames have to follow any particular naming convention or sequence. You might like to read this:
"and indexed with k?"
Yes, that is the point of using a loop.

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Signal Processing Toolbox에 대해 자세히 알아보기

제품

태그

질문:

2018년 6월 6일

편집:

2018년 6월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by