Hello, I want to merge a big matrices row by row
1 回表示 (過去 30 日間)
古いコメントを表示
2 matrices , big size about 150-200 row. I want merge them Row by Row such as [ row matrix1; row matrix2; .....]
How can I do that please?
0 件のコメント
採用された回答
per isakson
2020 年 4 月 5 日
Try this
>> m1=ones(3,3);
>> m2=2*ones(3,3);
>> M = nan( 6, 3 );
>> M(1:2:end,:)=m1;
>> M(2:2:end,:)=m2;
>> M
M =
1 1 1
2 2 2
1 1 1
2 2 2
1 1 1
2 2 2
>>
その他の回答 (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!