Do you help me create a matrix?
    1 visualizzazione (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
    Muhendisleksi
 il 4 Mag 2017
  
    
    
    
    
    Commentato: Muhendisleksi
 il 4 Mag 2017
            DNdog =
       7
      11
Each element of the "DNdog" matrix must repeat 3 times. How can I do that?
So I mean:
DNdog =
       7
       7
       7
      11
      11
      11
Is there a custom command for this?
0 Commenti
Risposta accettata
  Andrei Bobrov
      
      
 il 4 Mag 2017
        
      Modificato: Andrei Bobrov
      
      
 il 4 Mag 2017
  
      out = repelem(DNdog,3) ;
or
out = kron(DNdog,[1;1;1]);
Più risposte (0)
Vedere anche
Categorie
				Scopri di più su Creating and Concatenating Matrices 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!