How to append matrices? For example, if I have a 3*3 matrix and a 1*3 matrix, how to append them such that the resultant is a 4*3 matrix?
    3 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
3*3=[1 2 3;2 3 4;4 5 6]
1*3=[1 2 3]
4*3=[1 2 3;2 3 4;4 5 6;1 2 3]
0 Commenti
Risposte (1)
  madhan ravi
      
      
 il 29 Lug 2019
        
      Modificato: madhan ravi
      
      
 il 29 Lug 2019
  
       a=[1 2 3;2 3 4;4 5 6];
 b=[1 2 3];
 c=[a;b] % 4 X 3
Gives:
c =
     1     2     3
     2     3     4
     4     5     6
     1     2     3
>> 
0 Commenti
Vedere anche
Categorie
				Scopri di più su Installation in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!