Growing eye matrix as per the size of eye
1 次查看(过去 30 天)
显示 更早的评论
I have an eye matrix of size eye(3). I need to increase the size of matrix as below so that eye matrix has to repeat 2 times then 3 times. Can anyone help![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1019275/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1019275/image.png)
0 个评论
采纳的回答
更多回答(3 个)
DGM
2022-6-2
There are a number of ways, but this is what I'd do:
A = toeplitz([1 0 0 1 0 0 1 0 0],[1 0 0 0 0 0 0 0 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!