MATLAB Answers

0

Do you help me create a matrix?

Asked by Muhendisleksi on 4 May 2017
Latest activity Commented on by Muhendisleksi on 4 May 2017
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?

  0 Comments

Sign in to comment.

1 Answer

Answer by Andrei Bobrov
on 4 May 2017
Edited by Andrei Bobrov
on 4 May 2017
 Accepted Answer

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

  1 Comment

thanks.

Sign in to comment.