how to copy arrays in a cell?

2 Ansichten (letzte 30 Tage)
Hatim Altarteer
Hatim Altarteer am 1 Okt. 2021
Beantwortet: DGM am 1 Okt. 2021
a have a 1x3 cell. each index has 150x3x160 (3D) array like this:
how can I copy the 3D arrays (the 150x3x160) 8 times to make the cell 8x3? i want those values in the picture to be copied 8 time (1x3 --> 8x3).
thank you!

Akzeptierte Antwort

DGM
DGM am 1 Okt. 2021
Just use repmat
vel1 = repmat(vel1,[8 1]);

Weitere Antworten (0)

Kategorien

Mehr zu Resizing and Reshaping Matrices finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by