le
Determine whether real-world value offi
object is less than or equal to another
Syntax
c = le(a,b)
a <= b
Description
c = le(a,b)
is called for the syntaxa <= b
whena
orb
is afi
object.a
andb
must have the same dimensions unless one is a scalar. A scalar can be compared with another object of any size.
a <= b
does an element-by-element comparison betweena
andb
and returns a matrix of the same size with elements set to1
where the relation is true, and0
where the relation is false.
In relational operations comparing a floating-point value to a fixed-point value, the floating-point value is cast to the same word length and signedness as thefi
object, with best-precision scaling.
Examples
Extended Capabilities
Introduced before R2006a
Was this topic helpful?