DNdog =
7
11
Each element of the "DNdog" matrix must repeat 3 times. How can I do that?
So I mean:
DNdog =
7
7
7
11
11
11
Is there a custom command for this?

 Réponse acceptée

Andrei Bobrov
Andrei Bobrov le 4 Mai 2017
Modifié(e) : Andrei Bobrov le 4 Mai 2017

0 votes

out = repelem(DNdog,3) ;
or
out = kron(DNdog,[1;1;1]);

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by