O'Reilly logo

MATLAB® and Its Applications in Engineering: [Based on MATLAB 7.5 (R2007b)] by Manoj Kumar Sharma, Ashok Kumar Goel, Raj Kumar Bansal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

+addition
subtraction
*multiplication
/right division
^exponentiation
\left division

For example:

  • A+B is valid if A and B are matrices of the same size.

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required