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.?

 採用された回答

Star Strider
Star Strider 2019 年 12 月 12 日

0 投票

Use the repmat function:
A = rand(67, 960, 80);
B = repmat(A, 1, 1, 3);
sizeB = size(B)
producing:
sizeB =
67 960 240

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrices and Arrays についてさらに検索

質問済み:

2019 年 12 月 12 日

回答済み:

2019 年 12 月 12 日

Community Treasure Hunt

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

Start Hunting!

Translated by