Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Language Reference

Element Minimum Operator:   ><

selects the smaller of two elements

matrix1><matrix2

The element minimum operator (><) compares each element of matrix1 with the corresponding element of matrix2. The smaller of the values becomes the corresponding element of the new matrix that is produced.

When either argument is a scalar, the comparison is between the scalar and each element of the matrix.

The element minimum operator can take as operands two character matrices of the same dimensions or a character matrix and a character string. If the element lengths of the operands are different, the shorter elements are padded on the right with blanks. The element length of the result is the longer of the two operand element lengths.

When a missing value occurs in an operand, IML treats it as smaller than any valid numeric value.

For example, the statements

   a={2 4 6, 10 11 12};
   b={1 9 2, 20 10 40};
   c=a><b;
produce the result
               C             2 rows      3 cols    (numeric)

                               1         4         2
                              10        10        12

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.