# le

less than or equal, ≤ operator.

## Syntax

* C = le(A, B)

## Input argument

* A - a variable
* B - a variable

## Output argument

* C - result of le(A, B)

## Description

C = le(A, B) returns a logical array with elements set to logical true A is less than or equal to B.

le compares only the real part of numeric arrays.

## Examples

```matlab
eye(2,2) &#60;= ones(2, 2)
```

```matlab
0 &#60;= i
```

```matlab
'Nelson' &#60;= 'Noslen'
```

```matlab
'Nelson' &#60;= 'l'
```

```matlab
le(0.8 - 0.6 - 0.2, 0)
```

## See also

[ne](ne), [lt](lt), [ge](ge), [gt](gt), [eq](eq).

## History

| Version | Description     |
| ------- | --------------- |
| 1.0.0   | initial version |

## Author

Allan CORNET
