Matrix Arithmetic (GNU Octave (version 11.0.90))

#### 1.2.3 Matrix Arithmetic ¶

Octave uses standard mathematical notation with the advantage over low-level languages that operators may act on scalars, vector, matrices, or N-dimensional arrays. For example, to multiply the matrix `A` by a scalar value, type the command

    octave:4> 2 * A

To multiply the two matrices `A` and `B`, type the command

    octave:5> A * B

and to form the matrix product `transpose (A) * A`, type the command

    octave:6> A' * A