Hello, I want to merge a big matrices row by row
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
bashar halleem
am 5 Apr. 2020
Kommentiert: bashar halleem
am 5 Apr. 2020
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 Kommentare
Akzeptierte Antwort
per isakson
am 5 Apr. 2020
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
>>
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!