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!