Replicating one dimension of a 3d matrix

3 views (last 30 days)
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.

Accepted Answer

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

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Tags

Products


Release

R2020b

Community Treasure Hunt

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

Start Hunting!