@emax |

Element by element maximums of two data objects.

Syntax: @emax(m1, m2)

m1: numeric or alphanumeric object

m2: numeric or alphanumeric object

Return: vector or matrix object

Returns the element maximum of the conformable data objects m1 and m2.

Examples

Suppose there are n individuals deciding between two courses of action. Let U1 be an n-vector whose i-th element represents the utility the i-th individual derives from taking the first action. Define U2 similarly. Then

= @emax(u1, u2)

returns an n-vector of utilities that results from each individual taking the course of action that maximizes utility.

Cross-references

See also
@emin.