How can I concatenate an arbitrary number (#) of nxm matrices to make a 3D (# by n by m) matrix?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Callum
el 25 de Jul. de 2014
Comentada: Callum
el 25 de Jul. de 2014
Suppose I had a matrix A=[1:3;4:6;7:9], and then have B=cat(3,A,A,A,A) which creates a 3rd dimension and concatenates matrix A with itself 4 times. What I would like is to do this for an arbitrary length in this new dimension without using for loops which are drastically slower than typing out A,A,A.. 100 times. Thanks in advance!
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!