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!