Problem 45985. Flag a convertible string

If a string is able to be entirely converted to an integer, return a "true" flag. Otherwise, return a false flag. For example:
a = '32';
isconvertible(a)
Would return logical(1)
a = '32f';
isconvertible(a)
Would return logical(0)

Solution Stats

36.73% Correct | 63.27% Incorrect
Last Solution submitted on Apr 15, 2023

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers18

Suggested Problems

More from this Author3

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!