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!