Create copies of each row of an array
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Thomas Hoyle
el 30 de Nov. de 2016
Editada: Andrei Bobrov
el 30 de Nov. de 2016
Is there a way to copy each row of an array one after another for example if I had
A =
1 2 3 4
5 6 7 8
how can I make it into
A =
1 2 3 4
1 2 3 4
5 6 7 8
5 6 7 8
0 comentarios
Respuesta aceptada
Andrei Bobrov
el 30 de Nov. de 2016
Editada: Andrei Bobrov
el 30 de Nov. de 2016
kron(A,[1;1])
or
repelem(A,2,1)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Matrices and Arrays 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!