필터 지우기
필터 지우기

How do you concatenate several .mat files into one?

조회 수: 3 (최근 30일)
Lianna Johnson
Lianna Johnson 2013년 5월 30일
I have the following .mat files...
20130529_SPLBRENT3_000004.mat
20130529_SPLBRENT3_010022.mat
20130529_SPLBRENT3_020022.mat
I am trying to combine them into one .mat file with the name "20130529_SPLBRENT3_concat.mat"
Anyone know how I can do this?
  댓글 수: 2
Walter Roberson
Walter Roberson 2013년 5월 30일
Are the variable names distinct in them? Or do they all have the same variable name and you want the resulting .mat to have the result of concatenating all of those contents together? If so then do you want to concatenate vertically, horizontally, or on the next higher dimension after the current variables (e.g., if the existing variables are 5 dimensional, produce a 6-dimensional result) ?
Lianna Johnson
Lianna Johnson 2013년 5월 30일
They all have the same variable name and I want the resulting .mat file to have the result of concatenating all of the contents together. I would like to concatenate vertically.

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

답변 (1개)

Sean de Wolski
Sean de Wolski 2013년 5월 30일
편집: Sean de Wolski 2013년 5월 30일
You may also find the matfile class helpful:
doc matfile

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by