How do I concatenate two matrices into alternating rows?
    15 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Janna Hinchliff
 am 26 Aug. 2021
  
    
    
    
    
    Beantwortet: KSSV
      
      
 am 26 Aug. 2021
            I have two 2x4 matrices (actual matrices I'm using are much bigger than this in both dimensions), say
[1,2,3,4;5,6,7,8]  and [a,b,c,d;e,f,g,h]
and I want to combine them so that I get
[1,2,3,4;a,b,c,d;5,6,7,8;e,f,g,h]
I've tried to do this using the reshape function but haven't managed to get it to do what I want. Is this the best function to use?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!