3.5K Downloads
Updated
12 Mar 2007
No License
ISWHOLE True for integers(whole numbers).
ISWHOLE(X) is 1 for the elements of X that are integers, 0 otherwise. ISWHOLE(X1,X2,..,XN) returns a 1-by-N array with 1 for integers and 0 otherwise.
ISWHOLE does not check for integer data type as does ISINTEGER.
Cite As
Mukhtar Ullah (2026). ISWHOLE (https://nl.mathworks.com/matlabcentral/fileexchange/6277-iswhole), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Numeric Types in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: Date Odometer class
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 | Modified, as suggested by Josef Lotz, to provide indices of integer elements. |
