필터 지우기
필터 지우기

How to merge different matrices?

조회 수: 2 (최근 30일)
Max
Max 2016년 2월 2일
댓글: Stephen23 2016년 2월 2일
Hello
I have three different matrices:
S1 = [10x10.000 double]; S2 = [10x9.480 double]; S3 = [7x8.770 double];
And now, I would like to put all them together in one matrix or vektor.
Does anybody have an idea how can I realize that?
  댓글 수: 1
Stephen23
Stephen23 2016년 2월 2일
Putting them into one vector is easy:
vec = [S1(:);S2(:);S3(:)];
If you need more complicated "merging" than this, then you need to tell us, e.g. leading padding, trailing padding, value to pad with, dimension to concatenate along, etc, etc.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Newton-Raphson Method에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by