Is there any function in Matlab for changing the form of matrix?
- by niko
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 the paper by performing basic row operations but don't know how if there is any function already written in Matlab to calculate G from H or H from G by considering the above rules.
I would be very thankful if anyone of you could suggest any method for solving the given problem.
Thank you.