How can I create a 3-d matrix from a 2-d matrix?
Mostrar comentarios más antiguos
My matrix is an 11x14 matrix and I would like to create 2 more "pages" behind the original of the same values for a total of 3 "pages". Is there an efficient way of doing this? This needs to be done for several matrices.
Respuesta aceptada
Más respuestas (1)
Azzi Abdelmalek
el 12 de Jun. de 2016
repmat(A,1,1,3)
4 comentarios
zephyr21
el 12 de Jun. de 2016
Azzi Abdelmalek
el 12 de Jun. de 2016
Editada: Azzi Abdelmalek
el 12 de Jun. de 2016
It did what you asked
A=zeros(3,3)
B=repmat(A,1,1,3)
zephyr21
el 13 de Jun. de 2016
Roger Stafford
el 13 de Jun. de 2016
What difference does it make if all three levels end up the same?
Categorías
Más información sobre Univariate Discrete Distributions en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!