Search

 

Module: Editor

Version: 5.2.0 +

Type: Long, Double or Date

Category: Matrix

 

Description

There are two types of the formula 'Max'. Both will be described with an example.

The first type of the formula 'Max' returns the maximum of each element from identically shaped matrices with integers, real numbers or dates. The function 'Max' creates a new matrix with the maximum elements.

The second type of the formula 'Max' returns the maximum of each element from a specified dimension of a matrix with integers, real numbers or dates. The function 'Max' creates a new vector with the maximum elements of each row or column. When a matrix is empty, the long and double variant of the function 'Max' results in a 0 and the date variant results in an error.

Parameters

First formula 'Max':

Matrix 1:      matrix 1, matrix 2, ... are 1 to 30 from which you want the maximum.

Second formula 'Max':

Matrix:        the matrix you want to take the maximum over.

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

Example 1

Description

In the following example the first type formula 'Max' is used to get the maximum elements out of two matrices.

Values parameters

Matrix 1:

Column 1Column 2
 35  82
 96  23

 

Matrix 2:

Column 1Column 2
 73  81
 17  52

 

Result

Output:

Column 1Column 2
 73  82
 96  52
 
The result is a matrix with the maximum elements out of two matrices.
 

Example 2

Description

In the following example the formula 'Max' is used to get the maximum elements over the rows of a matrix.

Values parameters

Matrix:

Column 1Column 2Column 3
 35  82  50
 42  10  79
 96  23  97

 

Dimension: 1

Result

Output:

 96
 82
 97
 
The result is a vector with the maximum elements over the rows of the matrix.
 

Related Topics

MaxScalarMatrix: The formula 'MaxScalarMatrix' returns the maximum of each element from a matrix and a scalar existing of integers, real numbers or dates.

MinThe formula 'Min' returns the minimum of each element from identically shaped matrices with integers, real numbers or dates.

Feedback

If you have any questions about this subject or if you want to provide us feedback please send us an e-mail.

Updated: 2015-07-29