How to construct a "ones" matrix with zero blocks in the diagonal
3 views (last 30 days)
Show older comments
Lama Hamadeh on 23 Jul 2021
I am trying to construct the follwoing matrix and any help would be highly appreciated.
DGM on 23 Jul 2021
Edited: DGM on 23 Jul 2021
This display is going to get cut off, but this should serve as an example.
A = ones(4);
B = 1 - blkdiag(A,A,A,A)
More Answers (1)
Find more on Operating on Diagonal Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!