Borrar filtros
Borrar filtros

help!! not using repmat()

1 visualización (últimos 30 días)
gmltn1212
gmltn1212 el 22 de Jun. de 2020
Editada: Matt J el 22 de Jun. de 2020
I am trying to not use repmat() because I want to actually understand what is going on with this...
arr = [a b; c d]
row = 2;
col = 3;
I want to return this value..
new = [a b a b a b
c d c d c d
a b a b a b
c d c d c d]
I feel like I have to use forloop in order to solve this but I dont have a clear idea...
  1 comentario
madhan ravi
madhan ravi el 22 de Jun. de 2020
Why not just admit it’s a homework?

Iniciar sesión para comentar.

Respuesta aceptada

Matt J
Matt J el 22 de Jun. de 2020
Editada: Matt J el 22 de Jun. de 2020
Another option would be,
kron(ones(row,col),arr)

Más respuestas (0)

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by