3.10. Matrix and Array Operations
MATLAB supports two types of operations between arrays, known as array operations and matrix operations.
3.10.1. Arithmetic Operations on Matrices
Matrix operations follow the rules of linear algebra in MATLAB. It allows the following arithmetic operations to be carried out on matrices provided that the operands are compatible with the operator:
A+B is valid if A and B are matrices of the same size.
A−B is valid if A and B are matrices of the same size.
A*B is valid if number of columns of A is equal to number of rows of B.
A/B is valid if A and B are of the same size and it is equal to AB−1 for same size square matrices ...