Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Matrix.Max

Queries max value in a matrix column.

Component Version macOS Windows Linux Server iOS SDK
Matrix 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Matrix.Max"; MatrixRef; Column { ; FirstRow; LastRow } )   More

Parameters

Parameter Description Example Flags
MatrixRef The matrix reference number. $matrix
Column The index of the column.
Default is 0.
0
FirstRow The index of first row.
Default is 0.
0 Optional
LastRow The index of last row.
Default is Matrix.Height-1.
5 Optional

Result

Returns number or error.

Description

Queries max value in a matrix column.
You got a record set in memory and we can walk over a column in a given row range to find the maximum value.

Examples

Calculate max:

Set Variable [ $Max; Value: MBS( "Matrix.Max"; $matrix; 1 ) ]

See also

Release notes

  • Version 16.6
    • Improved Matrix.Avg, Matrix.CSV, Matrix.JSONRecords, Matrix.Max, Matrix.Min, Matrix.Multiply, Matrix.Sum and Matrix.Text to not report an error for empty result sets.

Blog Entries

This function checks for a license.

Created 8th April 2019, last changed 7th April 2022


Matrix.MBS - Matrix.Min


MarkDown version: MatrixMax.md