Copy matrix into N Dimensional array
11 次查看(过去 30 天)
显示 更早的评论
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
采纳的回答
Azzi Abdelmalek
2013-10-20
Do you mean?
R1=rand(18,9) % Example
R2=reshape(repmat(R1,1,6),18,9,6)
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!