How can we join two matrices of two dimmention
Ältere Kommentare anzeigen
hey everybody i have two matrices of 476*11 i want to join them in one matrix of 952*11 . thanks in advance
Akzeptierte Antwort
Weitere Antworten (3)
Sagar Damle
am 12 Mär. 2014
1 Stimme
For two matrices A and B; 1. for horizontal concatenation,use [A,B] or horzcat(A,B). 2. for vertical concatenation,use [A;B]. Also see help about function 'cat()'.
Write it as below assuming that matrix B and A are of the same dimension.
C = [B;A];
nl2605
am 12 Mär. 2014
0 Stimmen
C = horzcat(A,B); If A and Bb are the two matrices.
Kategorien
Mehr zu Mathematics finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!