[Index for ./basics]
[Return to Master Index]
isint
(./basics/isint.m)
Function Synopsis
retval=isint(x)
Help text
ISINT determine if input matrix is integers
ISINT a Matlab function to determine which input matrix positions
contain an integer or one that can be represented as an integer.
ISINT returns 1 where matrix entry is integer and a 0 otherwise.
If x is a vector or matrix, ISINT returns a vector or matrix
the same size as x with each element of the input being
evaluated as above.
Ex. 1; if x=3.2, ISINT returns 0
if x=3.0, ISINT returns 1
if x=3, ISINT returns 1
if x=0, ISINT returns 1
Ex. 2; >> x=[3 3.5
4.5 6 ];
>> isint(x)
ans = 1 0
0 1
Call as: >> retval=isint(x)
Written by : Brian O. Blanton
Cross-Reference Information
This function is called by
Produced by mat2html on Tue Feb 2 16:15:45 EST 1999
Cross-Directory links are: OFF