Loading [Contrib]/a11y/accessibility-menu.js

lt

Less than comparison, equivalent to the < operator

Syntax

lt(x,y)

Inputs

x,y
Anything that can be logically tested..
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | vector | matrix

Outputs

R
Numerical representation of true or false (1 or 0).
Type: logical

Examples

Scalar lt example:
lt(1,2)
R = 1
Matrix lt example:
lt([2, 1; 3, 4], [1, 2; 3 4])
R = [Matrix] 2 x 2
0  1
0  0
String lt example:
lt('test','year')
R = [Matrix] 1 x 4
1  0  0  0

Comments

If two strings are compared then they must have the same length.