필터 지우기
필터 지우기

Merging text files into one

조회 수: 1 (최근 30일)
MF
MF 2016년 3월 18일
댓글: Azzi Abdelmalek 2016년 3월 19일
I want to merge the content of 7 text files into a single file. I'm using
system('copy 090615.txt+090616.txt+090617.txt+090618.txt+090619.txt+090619.txt+090620.txt+090621.txt MyBigFat.txt');
Is it possible to use a for loop to do it? & how ? please. Thanks

답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 3월 18일
s=[ 'copy ' sprintf('0906%d.txt+',15:22)]
s(end)=[]
system(s)
  댓글 수: 2
MF
MF 2016년 3월 19일
When I run it its giving me the following error 'copy090615.txt+090616.txt+090617.txt+090618.txt+090619.txt+090620.txt+09062' is not recognized as an internal or external command, operable program or batch file.
I tried mex -setup to but its telling me No supported compiler or SDK was found.
Is it possible to do it in an other manner with out using system? Thanks
Azzi Abdelmalek
Azzi Abdelmalek 2016년 3월 19일
You didn't run what I posted, you missed a space in 'copy '

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by