필터 지우기
필터 지우기

Copy matrix into N Dimensional array

조회 수: 5 (최근 30일)
bugatti79
bugatti79 2013년 10월 20일
답변: Azzi Abdelmalek 2013년 10월 20일
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일
Do you mean?
R1=rand(18,9) % Example
R2=reshape(repmat(R1,1,6),18,9,6)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by