@sym
: isnan (x) ¶Return true if a symbolic expression is Not-a-Number.
Example:
A = [sym(1) sym(0)/0 sym(1)/0; sym(nan) 1 2] ⇒ A = (sym 2×3 matrix) ⎡ 1 nan zoo⎤ ⎢ ⎥ ⎣nan 1 2 ⎦ isnan(A) ⇒ ans = 0 1 0 1 0 0
Note that the return is of type logical.
See also: @sym/isinf, @sym/double.
Package: symbolic