how to merge two matrices
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have two matrices with a= 20x6 and b=20x3 how can I merge them as 20x9.
thanks.
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 18 Nov. 2012
Bearbeitet: Azzi Abdelmalek
am 18 Nov. 2012
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]
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!