I am trying to determine if an input is alphanumeric and I ran into this strange issue. For example, let's say I have the following:
userinput =
28
K>> isstrprop(userinput, 'alphanum')
ans =
0
However, when I change the userinput to 48, I get a different result:
userinput =
48
K>> isstrprop(userinput, 'alphanum')
ans =
1
My question is why does the isstrprop function considers 48 as an alphanumeric argument when it thinks 28 is not an alphanumeric argument? Thank you.
Best Answer