필터 지우기
필터 지우기

could anyone help me how to vertically concatenate different mat files of same number of rows with different columns.

조회 수: 1 (최근 30일)
A.mat=(10x2)
B.mat=(10x4)
C.mat=(10x6)
i want to vertically concatenate all three .mat files into single final.mat that contains 30 rows with its respective columns.
could anyone please help me on it.
  댓글 수: 1
Jakob B. Nielsen
Jakob B. Nielsen 2020년 3월 10일
You can't concatenate arrays of different dimensions. Why do you need them concatenated? One approach is to add 0s to A and B to make them all 10x6 and then concatenate, but depending on what you intend to do with the data afterwards that might not be a good approach.

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

답변 (1개)

jaah navi
jaah navi 2020년 3월 10일
the reason i need to concatenate all into a single mat file i need to feed the mat file into the neural network for training.

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by