필터 지우기
필터 지우기

Do you help me create a matrix?

조회 수: 1 (최근 30일)
Muhendisleksi
Muhendisleksi 2017년 5월 4일
댓글: Muhendisleksi 2017년 5월 4일
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일
out = repelem(DNdog,3) ;
or
out = kron(DNdog,[1;1;1]);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by