Module: Editor
Version: 5.1.4 +
Description
The formula 'SubtractMatrixScalar' returns the subtraction of a scalar from a matrix. The scalar will be subtracted from each element of a matrix.
Parameters
Matrix: the matrix you want to use for subtraction.
Scalar: the scalar you want to subtract from the matrix.
Example
Description
In the following example the formula 'SubtractMatrixScalar' is used to subtract a scalar from a matrix.
Values parameters
Matrix 1:
Column 1 | Column 2 | Column 3 |
2 |
5 |
8 |
3 |
6 |
9 |
4 |
7 |
10 |
Scalar: 6
Result
Output:
Column 1 | Column 2 | Column 3 |
-4 |
-1 |
2 |
-3 |
0 |
3 |
-2 |
1 |
4 |
The outcome is a matrix with the results of the subtraction of the the scalar 6 from a matrix.
Related Topics
- SubtractMatrices: The formula 'SubtractMatrices' returns the subtraction of two matrices.
- SubtractScalarMatrix: The formula 'SubtractScalarMatrix' returns the subtraction of a matrix from a scalar.
- AddScalarToMatrix: The formula 'AddScalarToMatrix' returns the sum of a scalar and a matrix.
Feedback
If you have any questions about this subject or if you want to provide us feedback please send us an e-mail.