Search

 

Module: Editor

Version: 5.1.4 +

Type: Double

Category: Matrix

 

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 1Column 2Column 3
 2  5  8
 3  6  9
 4  7  10

 

Result

Output:

Column 1Column 2Column 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.

SubtractMatrixScalarThe formula 'SubtractMatrixScalar' returns the subtraction of a scalar from a matrix.

AddScalarToMatrixThe 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.

Updated: 2014-09-12