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 (2023). ISWHOLE (https://www.mathworks.com/matlabcentral/fileexchange/6277-iswhole), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Date Odometer class
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!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. |