Search

 

Module: Editor

Version: 5.1.4 +

Type: Long or Double

Category: Matrix

 

Description

The formula 'Sum' returns the sum of a specified dimension of a matrix. Result will be a vector with the sum of either the rows or the columns..

Parameters

Matrix:               the matrix you want to take the sum of.

Dimension:         the dimension you want to take the sum of. 1 means downwards (over rows), 2 means rightwards (over columns).

Example

Description

In the following example the formula 'Sum' is used to sum the elements of the rows of a matrix per column.

Values parameters

Matrix:

Column1Column2Column3Column4
 2 4
 3

 

Dimension: 1

Result

Matrix:
 
Column1
 5
 9
 13
 17

The results are the sums of the rows of the matrix per column.

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