then this is what it is talking about. E*M and E*B do not exist.Error using *
Inner matrix dimensions must agree.
M*E = (A*B+C*D)*E = A * (B*E) + C * (D*E) = A * R1 + C *R2
you have the answer in your reply itself..try this in matlab
M*E = (A*B+C*D)*E = A * (B*E) + C * (D*E) = A * R1 + C *R2
your final output should be a 2x1 matrix.
do you mean that your end output i.e M*E should be divisible by both A and C ??
nothing to do with divisibility, just how to make selective multiplication. I want to multiply M by E such that only B and D part of M gets multiplied by E. The output should stay as A * R1 + C *R2.
Just to tell more, in the next step another vector F multiplies the result M = A * R1 + C *R2 such that now only F gets multiplied by A and C.
you need to find the B and D part of M by doing a simulataneous eqns approach.once u find the value of M,try assigning values of A and C matrices as variables x1,x2,y1,y2 and calculates the B and D matrix values..if you already know the B and D matrix value...why cant u multiple B and D with E directly??..
you need to specify us which matrix values are available to u and which are not..
Perhaps you want to separate the terms like this (using Matlab syntax, transpose is denoted by .'):I mean how to multiply only B and D part of M with E.
R1 = B*E;
R2 = D*E;
L1 = F.'*A;
L2 = F.'*C;
disp(F.'*M*E);
disp(L1*R1 + L2*R2);
You must be careful, as this is not correct in general. What do you even mean by "divide it by M"? M is a matrix, so perhaps you are suggesting that you can either left multiply or right multiply by M-1 (where -1 denotes matrix inverse). However, M-1 only exists if M is a square matrix and is "full rank".yes matlab will multiply M * E...your output does not change..if you want E back you divide it by M...what do you want as output?..Can u be more specific??
then this is what it is talking about. The matrix is not full rank, so an inverse doesn't exist.Warning: Matrix is singular to working precision
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?