When solving matrix multiplication and division, left and right divisions are used;
For Ax=b, to find the solution of x, use x=A\b;
For xA=b, to find the solution of x, use x=b/A;
That is: if A is on the left, the position where A is divided by A should also be on the left, and the corresponding division sign (/,\) should also be placed in the corresponding place that can indicate the division of b by A. When used, confusion cannot correctly represent the divisor and the dividend. Relationship. For example, if A is on the left side, if x=A/b is used, it means A divided by b.
Inv(A) can also be used. The position of the inverse matrix of A is the same as the position of A at Ax=b. That is, if A was originally on the left, it was placed on the left, and if A was originally on the right, it was placed on the right.
example:
a = [2,3,-1;8,2,3;45,3,9];% establish the coefficient matrix a
b = [2;4;23];% create column vector b
x = inv(a)*b
x=a\b% The two methods are the same