Module: Editor
Version: 5.1.4 +
Description
The formula 'SubtractScalarMatrix' returns the subtraction of a matrix from a scalar. Each element of the matrix will be subtracted from the scalar.
Parameters
Scalar: the scalar you want to use for subtraction.
Matrix: the matrix you want to subtract from the scalar.
Example
Description
In the following example the formula 'SubtractScalarMatrix' is used to subtract a matrix from a scalar.
Values parameters
Scalar: 6
Matrix:
Column 1 | Column 2 | Column 3 |
2 |
5 |
8 |
3 |
6 |
9 |
4 |
7 |
10 |
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 each element of a matrix from the scalar 6.
Related Topics
- SubtractMatrices: The formula 'SubtractMatrices' returns the subtraction of two matrices.
- SubtractMatrixScalar: The formula 'SubtractMatrixScalar' returns the subtraction of a scalar from a matrix.
- 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.