help!! not using repmat()

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...

 Risposta accettata

Matt J
Matt J il 22 Giu 2020
Modificato: Matt J il 22 Giu 2020
Another option would be,
kron(ones(row,col),arr)

Più risposte (0)

Richiesto:

il 22 Giu 2020

Modificato:

il 22 Giu 2020

Community Treasure Hunt

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

Start Hunting!

Translated by