フィルターのクリア

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]
  1 件のコメント
Ede gerlderlands
Ede gerlderlands 2012 年 11 月 18 日
Thanks.....

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by