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 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!