isintegral
Element-wise integer-value test.
Syntax
Section titled “Syntax”TF = isintegral(A)Description
Section titled “Description”Returns true for elements with no fractional part (integer values regardless of storage type). Different from isinteger, which tests storage type only in Excel-compat mode.
Example
Section titled “Example”isintegral([1 2.5 3 4.0]) % [1 0 1 1]