Repeat 3-D array elements
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Joana
am 12 Dez. 2019
Beantwortet: Star Strider
am 12 Dez. 2019
Hi
I have a 3-d array x of size 67x960x80. I need to repeat the elements of the array 3 times to make it an array of size 67x960x240. How i can do that.?
0 Kommentare
Akzeptierte Antwort
Star Strider
am 12 Dez. 2019
A = rand(67, 960, 80);
B = repmat(A, 1, 1, 3);
sizeB = size(B)
producing:
sizeB =
67 960 240
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!