Growing eye matrix as per the size of eye
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Babu Thomas
am 2 Jun. 2022
Kommentiert: Babu Thomas
am 2 Jun. 2022
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (3)
DGM
am 2 Jun. 2022
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])
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!