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 ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by