• Futurama Formulas - Date and time
• Futurama Formulas - Math
• Futurama Formulas - Statistical
• Futurama Formulas - Text
• Futurama Formulas - Logical
• Futurama Formulas - Table
• Futurama Formulas - Document
• Futurama Formulas - Conversion
• Futurama Formulas - Matrix
• Creating custom formulas in Futurama

Module: Editor

Version: 5.1.4 +

Type: Long or Double

Category: Matrix

## Description

The formula 'SubtractMatrices' returns the subtraction of two matrices. Each element of the second matrix will be subtracted from the element that is on the same position of the first matrix. The matrices have to be of the same size.

## Parameters

Matrix1:          first matrix you want to use for the subtraction.

Matrix2:          second matrix you want to use for the subtraction.

## Example

### Description

In the following example the formula 'SubtractMatrices' is used to subtract one matrix from another.

Matrix 1:

Column 1Column 2
5 9
12 23

Matrix 2:

Column 1Column 2
16 5
3 10

### Result

Output:

Column 1Column 2
-11 4
9 13

The outcome is a matrix with the results of the subtraction of the elements of the two matrices.

## Related Topics

AddMatrices: The formula 'AddMatrices' returns the sum of two or more matrices.