[ MATLAB] Check some linear algebra rules: Enter the following matrices: A = [0 1 0 0] B = [1 2
[ MATLAB] Check some linear algebra rules: Enter the following matrices:
The following rules of algebra hold for real numbers. However, most of them are false for matrices.
Use the matrices A;B;C above to perform the appropriate operations in MATLAB and determine
which rules are false. Below 0 denotes the 2 2 zero matrix. Note that if a rule holds for these
particular matrices, it does not mean that it is true in general. However, you should be able to
determine that from the theory you have learned in class.
(i) If BC = 0, then B = 0 or C = 0
(ii) If A2 = 0, then A = 0
(iii) (A + B)2 = A2 + 2AB + B2
(iv) (A – B)(A + B) = A^2 – B^2
(v) A(B + C) = AB + AC
(vi) A(B + C) = BA + CA
(vii) (AB)2 = A^2B^2