Borrar filtros
Borrar filtros

Copy matrix into N Dimensional array

5 visualizaciones (últimos 30 días)
bugatti79
bugatti79 el 20 de Oct. de 2013
Respondida: Azzi Abdelmalek el 20 de Oct. de 2013
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 comentario
Azzi Abdelmalek
Azzi Abdelmalek el 20 de Oct. de 2013
What is the size of the expected result?

Iniciar sesión para comentar.

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 20 de Oct. de 2013
Do you mean?
R1=rand(18,9) % Example
R2=reshape(repmat(R1,1,6),18,9,6)

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by