Growing eye matrix as per the size of eye
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Plus de réponses (3)
DGM
le 2 Juin 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])
Voir également
Catégories
En savoir plus sur Matrices and Arrays dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!