I have A
A=[0 0 0 0 0 0 0 0 0 0; 0 0 0 1 0 1 0 0 0 0; 0 0 0 1 1 0 0 0 0 0; 0 0 0 0 0 1 0 0 0 0; 0 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 0 0 0 0; 0 0 0 0 0 0 0 0 0 0 ];
this matrix has 1 in (R2, R3, R4) and (C4, C5, C6) R correspond to row and C correspond to column.
I want to find combination like below to remove all 1 from matrix. So each R2,R3,R4, C4, C5, C6 should be participate on this.
This is example of combination that I write here. I think it would be better way to do this.
R2 R3 R4 C4 C5 C6 -------------------------------------------------------------------combination 1: 0 0 0 1 1 1 ---> remove(C4,C5,C6) --> we remove all ones in A (Removed columns or rows is shown by 1)combination 2: 0 0 1 1 1 1 ---> remove(R4,C4,C5,C6) --> we remove all ones in Acombination 3: 0 1 0 1 0 1 ---> remove(R3,C4,C6) --> remove all ones in Acombination 4: 0 1 1 1 0 1 ---> remove(R3,R4,C5,C6) --> remove all ones in Acombination 5: 1 0 0 1 1 1 ---> remove(R2,C4,C5,C6) --> remove all ones in Acombination 6: 1 0 1 1 1 0 ---> remove(R2,R4,C4,C5) --> remove all ones in A
I do not know how to remove ones from matrix A, by using this combination.
Best Answer