Question: construct a matrix with some conditions

hi

I am trying to construct a series of 10X10 matrices whose main diagonal contains exactly k ones and other entries zero.

 

plz suggest thanks

Please Wait...