QUESTION ON MATRIX RESHAPING
2 次查看(过去 30 天)
显示 更早的评论
Respected Sir, Simply I want to know the process how this is done in matlab for higher order matrix---
[1 2 3 [1 1 1 2 2 2 3 3 3
4 5 6 to 1 1 1 2 2 2 3 3 3
7 8 9 ] 1 1 1 2 2 2 3 3 3
4 4 4 5 5 5 6 6 6
4 4 4 5 5 5 6 6 6
4 4 4 5 5 5 6 6 6
7 7 7 8 8 8 9 9 9
7 7 7 8 8 8 9 9 9
7 7 7 8 8 8 9 9 9]
how it can be done for higher order matrix?? Please Reply. Your's Faithfully
Arnab Chattaraj.
0 个评论
采纳的回答
Andrei Bobrov
2016-3-15
编辑:Andrei Bobrov
2016-3-15
a = reshape(1:9,3,[])';
out = kron(a,ones(3));
or
out = repelem(A,3,3)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!