# Documentation

### This is machine translation

Translated by
Mouse over text to see original. Click the button below to return to the English verison of the page.

# isfinite

Array elements that are finite

## Syntax

`TF = isfinite(A)`

## Description

`TF = isfinite(A)` returns an array the same size as `A` containing logical 1 (`true`) where the elements of the array `A` are finite and logical 0 (`false`) where they are infinite or `NaN`. For a complex number `z`, `isfinite(z)` returns `1` if both the real and imaginary parts of `z` are finite, and `0` if either the real or the imaginary part is infinite or `NaN`.

For any real `A`, exactly one of the three quantities `isfinite(A)`, `isinf(A)`, and `isnan(A)` is equal to one.

## Examples

collapse all

Create a row vector, `A`, and determine the finite elements.

```A = 1./[-2 -1 0 1 2] ```
```A = -0.5000 -1.0000 Inf 1.0000 0.5000 ```
```TF = isfinite(A) ```
```TF = 1×5 logical array 1 1 0 1 1 ```

## More About

collapse all

### Tall Array Support

This function fully supports tall arrays. For more information, see Tall Arrays.

## See Also

#### Introduced before R2006a

Was this topic helpful?

Watch now