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?

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2017년 5월 4일
편집: Andrei Bobrov 2017년 5월 4일

0 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

질문:

2017년 5월 4일

댓글:

2017년 5월 4일

Community Treasure Hunt

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

Start Hunting!

Translated by