isfinite

Tests if a value is finite.

Syntax

R = isfinite(A)

Inputs

A
The input to be tested for finite values.
Type: double | integer | char | string | logical | struct | cell
Dimension: scalar | string | vector | matrix

Outputs

R
Each element of R is a logical value indicating whether the corresponding element of A is finite.

Example

R = isfinite([1, inf, 2/0])
R = [1 0 0]