How to construct a "ones" matrix with zero blocks in the diagonal
Mostra commenti meno recenti
Hi all,
I am trying to construct the follwoing matrix and any help would be highly appreciated.

Thank you.
Risposta accettata
Più risposte (1)
repelem(1-eye(4),4,4)
Categorie
Scopri di più su Operating on Diagonal Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!