make matrix for given vector ( better method)
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    JaeSung Choi
 el 21 de Nov. de 2017
  
    
    
    
    
    Comentada: JaeSung Choi
 el 21 de Nov. de 2017
            for given vector x = [x1 x2 x3 x4 x5]
I want to make square matrix y = [x; x; x; x; x]
actually I can make it using
--------------------
 for i = 1 : 5
    y(i,:) = x
 end
--------------------
but i have to do such calculation many times, so I want even fast method!
Please help me!!
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
				Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
