• Futurama Formulas - Date and time
• Futurama Formulas - Math
• Futurama Formulas - Statistical
• Futurama Formulas - Text
• Futurama Formulas - Logical
• Futurama Formulas - Table
• Futurama Formulas - Document
• Futurama Formulas - Conversion
• Futurama Formulas - Matrix
• Creating custom formulas in Futurama

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.