Hi,
I have to get the unknown matrix by changing the form of known matrix considering the following rules:
H = [-P'|I] %'
G = [I|P]
where
- H is known matrix
- G is unknown matrix which has to be calculated
- I is identity matrix
So for example if we had a matrix
H = [1 1 1 1 0 0;
0 0 1 1 0 1;
1 0 0 1 1 0]
its form has to be changed to
H = [1 1 1 1 0 0;
0 1 1 0 1 0;
1 1 0 0 0 1]
so
-P' = [1 1 1;
0 1 0;
1 1 0]
and in case of binary matrices -P = P
therefore
G = [1 0 0 1 1 1;
0 1 0 0 1 0;
0 0 1 1 1 0]
I know how to solve it on paper by performing basic row operations but haven't figured out how to solve it using Matlab yet.
I would be very thankful if anyone of you could suggest any method for solving the given problem.