필터 지우기
필터 지우기

How to combine multiple text files into one with index?

조회 수: 3 (최근 30일)
sally_wu
sally_wu 2015년 9월 28일
댓글: sally_wu 2015년 9월 28일
I have five output txt files (Apple, Bean, Carrot, Tomato, and Orange) with one column and index as it shown below:
And now I need to combine this single column output file into multiple files as one output file in txt form and have the following output file with the following index and column:
How can I do that?

답변 (1개)

Jan
Jan 2015년 9월 28일
At first load the data into cell arrays by reading one file after the other. Then create the output.
Well, a is very general answer. But simply try to start with importing one file and ask a specific question, if problems occur.
  댓글 수: 1
sally_wu
sally_wu 2015년 9월 28일
Well, I tried to import as a one file, but no luck so far...I really do not know why it is not working. It works if the column is not indexed i.e. just a column with output numbers, but with index such as "Data", and "1" is not working...I could do it manually, but copying and pasting, but this one should be automated for the study... Please any help will be greatly appreciated.

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by