Replicating one dimension of a 3d matrix

8 Ansichten (letzte 30 Tage)
user86753
user86753 am 21 Jul. 2022
Beantwortet: the cyclist am 21 Jul. 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.

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by