MATLAB: How to check whether all the elements are integer

integer

I had a vector of size (1 x 65536). How can i check whether all the elements in that vector is an integer.

Best Answer

check = [1 1.5];
logical(~rem(check,1))