# isint

## PURPOSE

## SYNOPSIS

function [ Y ] = isint( X )

## DESCRIPTION

     ISINT     True for integer numbers

        Y = ISINT(X) returns true (1) is X is an integer, false (0) otherwise.
     Created by Frederico D'Almeida: http://www.mathworks.com/matlabcentral/fileexchange/1309-general-extra-toolbox/content/isint.m

## CROSS-REFERENCE INFORMATION

This function calls:

This function is called by:

## SOURCE CODE

    0001 function [ Y ] = isint( X )
    0002 %
    0003 % ISINT     True for integer numbers
    0004 %
    0005 %    Y = ISINT(X) returns true (1) is X is an integer, false (0) otherwise.
    0006 % Created by Frederico D'Almeida: http://www.mathworks.com/matlabcentral/fileexchange/1309-general-extra-toolbox/content/isint.m
    0007
    0008 if isa(X,'uint8')
    0009    Y = ones(size(X));
    0010 else
    0011    Y = logical(X==round(X));
    0012 end
    0013 end
    0014