Merge multiple txt files in matlab

조회 수: 15 (최근 30일)
Curious Mind
Curious Mind 2020년 6월 29일
댓글: Anirudh Singh 2020년 7월 14일
Hello,
I have multiple txt files and I want to merge them into a single matrix in matlab. Each file has 3 rows of headers. A summary of what I am looking for is below:
  1. Read and combine/merge 3 txt files into a single data matrix in matlab. Each txt file has 13 rows (3 hearders, 10 numeric data. Please see image below). The first column (numeric data) is the same for all the files. I want to merge only the 2nd columns of ALL 3 txt files.
  2. Each txt file has 3 row headers. I want to extract and merge the 2nd row header of each txt file into a matrix called header. The 2nd row header of each file should be in its own row in header.
Please image is shown below:
Thank you
  댓글 수: 2
dpb
dpb 2020년 6월 29일
Sounds simple enough--where did you get stuck? Or did you even try?
Anirudh Singh
Anirudh Singh 2020년 7월 14일

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by