function answer=isint(varargin) % ISINT integer object test % Returns a vector of logicals (1/0), true for the input objects containing % only integers, and false for the others. % % answer = isint(varargin) % % See also ISREAL ISNUMERIC ISVEC %Time-stamp: %File: for i=1:length(varargin) varargin{i}; if isempty(ans), answer(i) = 0; else answer(i) = all(all(all(ans==round(ans)))); end end