"Babloo Varaganti" <babloo_varaganti@yahoo.com> wrote in message <i7eat0$4h6$1@fred.mathworks.com>...
> I am new to Matlab and trying to solve four equations with four unknowns, please help me by guiding in the right direction.
>
> Following is an problem that i am trying to solve using Matlab.
> AB' is 2x1 matrix,
> AB is 2x1 matrix,
> AC' is 2x1 matrix,
> AC is 2x1 matrix,
> F is 2 x 2 matrix with four unknowns F11, F12, F21,F22.
>
> I want to solve AB' = F * AB and AC' = F * AC to determine the four unknowns F11, F12, F21,F22 of matrix F.
>
> Thanks
> Babloo
Let
AB' = [c ;d] ;
AB = [a; b] ;
AC' = [p ;q];
AC = [r ;s]
F = [F11 F12;F21 F22];
So as per your equations:
a*F11+b*F12 = c
a*F21+b*F22 = d
and,
r*F11+s*F12 = p
r*F21+s*F22 = q
So,
[a b;r s]*[F11;F12] = [c;p]
[F11;F12]=inv([a b;r s])*[c;p];
similarly
[F21;F22] = inv([a b;r s])*[d;q]
