Is there any function in Matlab for changing the form of matrix?

Posted by niko on Stack Overflow See other posts from Stack Overflow or by niko
Published on 2010-04-27T09:27:55Z Indexed on 2010/04/27 9:33 UTC
Read the original article Hit count: 231

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about matlab

Related posts about matrices