Skip to content

mmult

Matrix multiplication of two arrays.

v = mmult(array1, array2)

Returns the matrix product array1 * array2. The number of columns of array1 must equal the number of rows of array2. Same as the * operator on matrices in script mode.

mmult([1 2; 3 4], [5; 6]) % [17; 39]
  • mtimes — Matrix multiplication (A * B).
  • munit — Unit (identity) matrix.
  • sumproduct — Sum of element-wise products of arrays.