ans = 2x1 logical array
1
1
Both 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 array
0 1 1 0
0 1 1 0
The function lt (<) indicates the location of all green and red values with 1.
See Also
categorical | categories
Related 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