Search

 

Module: Editor

Version: 5.1.4 +

Type: Double

Category: Matrix

 

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

 

Scalar: 6

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 the the scalar 6 from a matrix.

Related Topics

SubtractMatrices: The formula 'SubtractMatrices' returns the subtraction of two matrices.

SubtractScalarMatrixThe formula 'SubtractScalarMatrix' returns the subtraction of a matrix from a scalar.

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