MATLAB supports two types of operations between arrays, known as array operations and matrix operations.

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:

+ | addition |

− | subtraction |

* | multiplication |

/ | right division |

^ | exponentiation |

\ | left division |

For example:

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 ...

Start Free Trial

No credit card required