Do you help me create a matrix?
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Andrei Bobrov
2017-5-4
编辑:Andrei Bobrov
2017-5-4
out = repelem(DNdog,3) ;
or
out = kron(DNdog,[1;1;1]);
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrices and Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!