shifted triangular matrix array
2 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Matt J
2019-12-6
编辑:Matt J
2019-12-6
ac=num2cell([0,0;a],2);
T=toeplitz(1:4,[1,zeros(1,3)]);
A=cell2mat(ac(T+1))
A =
1 2 0 0 0 0 0 0
3 4 1 2 0 0 0 0
5 6 3 4 1 2 0 0
7 8 5 6 3 4 1 2
3 个评论
Image Analyst
2019-12-6
Jesus, can you "Accept this answer" to give Matt credit for it? Thanks in advance.
更多回答(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!