<< abs Elementary functions angle >>

allfinite


Check if all array elements are finite.


Syntax


tf = allfinite(M)

Input argument


M

a variable

Output argument


tf

logical: result of 'allfinite'.

Description


allfinite returns a logical scalar which is true where elements of M are all finite values.

Example


X = sparse([1 2 NaN 3 0 Inf 0 4]);
R = allfinite(X)
R2 = isfinite(X)

See also


isfinite, isnan, all.

History


Version Description
1.6.0 initial version

Author


Allan CORNET

<< abs Elementary functions angle >>