MATLAB: How To Detect Special Characters

special charaters

How could I find out if there are any special characters in my string? Suppose I have the string '1asdf?', how could I detect if there is a special character in there?

Best Answer

Use isstrprop with category 'alphanum' to identify letters and digits.