필터 지우기
필터 지우기

how to merge two matrices

조회 수: 2 (최근 30일)
Ede gerlderlands
Ede gerlderlands 2012년 11월 18일
I have two matrices with a= 20x6 and b=20x3 how can I merge them as 20x9.
thanks.

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2012년 11월 18일
편집: Azzi Abdelmalek 2012년 11월 18일
Horizontal concatenation
c=[a b]
example
for horizontal concatenation
a=rand(20,6);
b=rand(20,3);
c=[a b]
for vertical concatenation
a=rand(6,20)
b=rand(3,20)
c=[a;b]

추가 답변 (0개)

카테고리

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