Replicating one dimension of a 3d matrix

6 visualizaciones (últimos 30 días)
user86753
user86753 el 21 de Jul. de 2022
Respondida: the cyclist el 21 de Jul. de 2022
I have a matrix of size 100x4x2, I'd like to replicate the data 10 times so that I have a matrix of size 1000,4,2.

Respuesta aceptada

the cyclist
the cyclist el 21 de Jul. de 2022
If M is your array, then
output = repmat(M,[10,1,1]);

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by