Maximum

Syntax


y = max(x1, x2)

Description


Returns the larger (more positive) of the two input arguments (which may be an expression evaluating to a doubleprecision value).

Example


m = max(cos(t), sin(t))