Code covered by the BSD License  

Highlights from
General Extra Toolbox

General Extra Toolbox

by

 

11 Feb 2002 (Updated )

Generic functions for matrix manipulation, image processing, etc.

isint(X)
function Y = isint(X)
%
% ISINT     True for integer numbers
%
%    Y = ISINT(X) returns true (1) is X is an integer, false (0) otherwise.
%

if isa(X,'uint8')
   Y = ones(size(X));
else
   Y = logical(X==round(X));
end

Contact us