isdata_integer returns true for integers false otherwise. Checks value not type.
isdata_integer( 2 )
ans =
1
isdata_integer( 2.5 )
ans =
0
To get library clone from github:
cd to your lib folder
git clone https://github.com/Matlab-Toolbox/isdata_integer.git
Add package to path:
%% Add package to path
run(['/path_to_package/isdata_integer/load_toolbox.m']);