ans = 2x1 logical array1
1Both values in the first column, blue, are greater than the corresponding values in the
second column, red and green.Find all the elements in colors that are less than 'blue'.colors < 'blue'ans = 2x4 logical array0 1 1 0
0 1 1 0The function lt (<) indicates the location of all green and red values with 1.See Also
categorical | categoriesRelated Examples
- “Access Data Using Categorical Arrays” on page 8-30
More About
- “Relational Operations”
- “Advantages of Using Categorical Arrays” on page 8-43
- “Ordinal Categorical Arrays” on page 8-46
8 Categorical Arrays