how to merge two matrix into single matrix . two matrix is of size 270x13 into single matrix of 270x26 .this can be done by merging the cells alternatively.a=[1 2 3 4],b=[5 6 7 8],c=[1 5 2 6 3 7 4 8].is there any command available in matlab.help me .
1 回表示 (過去 30 日間)
古いコメントを表示
kavitha subramaniam
2014 年 10 月 27 日
コメント済み: kavitha subramaniam
2014 年 10 月 27 日
a=[1 2 3 4 5 6] b=[7 8 9 10 11 12] resultant matrix: c=[1 7 2 8 3 9 4 10 5 11 6 12]
採用された回答
Mischa Kim
2014 年 10 月 27 日
編集済み: Mischa Kim
2014 年 10 月 27 日
Use
a = [1 2 3 4 5 6]; b = [7 8 9 10 11 12];
c = reshape([a;b],1,[])
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Multidimensional Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!