How to construct a "ones" matrix with zero blocks in the diagonal
Afficher commentaires plus anciens
Hi all,
I am trying to construct the follwoing matrix and any help would be highly appreciated.

Thank you.
Réponse acceptée
Plus de réponses (1)
repelem(1-eye(4),4,4)
Catégories
En savoir plus sur Operating on Diagonal Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!