Copy matrix into N Dimensional array

Folks,
How do I copy a 18*9 matrix 6 times to create a 6-D array?
I have tried
R1=repmat(R1_1, [: : 6])
I have also tried
R1(:,:,2)=R1 repeatedly up to 6, no luck
Thanks in advance. B

1 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 10 月 20 日
What is the size of the expected result?

サインインしてコメントする。

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 10 月 20 日

0 投票

Do you mean?
R1=rand(18,9) % Example
R2=reshape(repmat(R1,1,6),18,9,6)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

質問済み:

2013 年 10 月 20 日

回答済み:

2013 年 10 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by