Similar to isletter. Returns a vector the same length as the input string but with a true for each character that is a number and false otherwise.
The test here is for the ascii character set, so char(48:57) qualifies.
Ben Barrowes (2023). isnumber (https://www.mathworks.com/matlabcentral/fileexchange/7898-isnumber), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!