Replicating one dimension of a 3d matrix

5 次查看(过去 30 天)
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.

采纳的回答

the cyclist
the cyclist 2022-7-21
If M is your array, then
output = repmat(M,[10,1,1]);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Matrices and Arrays 的更多信息

标签

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by