Max

 

Description

This function returns the maximum value from a set of values. This function can take up to 10 arguments.

Notes:

Max function calculates maximum value by column. If you want to calculate maximum of multiple datasets by row, you can use syntax sum(vd) function to sum datasets by row and generate temporary datasets of related statistics values, and then use _max to get the maximum. See the sum() function for more information.

Syntax

double Max(dataset vd)

Parameters

vd

A dataset or specified column in Origin worksheet.

Return

Return the maximum value from a set of values.

Example

dd=max(col(A));
dd=; // Should return the maximum value of column(A).
y = max(1, 2, 3, 4, 5, 6); 
y=; //Should return the maximum value of the dataset y.

See Also

Min, Mean, Total