How can we join two matrices of two dimmention
이전 댓글 표시
hey everybody i have two matrices of 476*11 i want to join them in one matrix of 952*11 . thanks in advance
채택된 답변
추가 답변 (3개)
Sagar Damle
2014년 3월 12일
1 개 추천
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
2014년 3월 12일
0 개 추천
C = horzcat(A,B); If A and Bb are the two matrices.
카테고리
도움말 센터 및 File Exchange에서 Mathematics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!