Determine which characters are space characters
tf = isspace( returns a logical array
A is a string, then the elements of
tf are logical
corresponding characters in
A are space characters, and logical
isspace is supported only in Stateflow® charts that use MATLAB® as the action language.
Determine Which Elements of a String Are Spaces
h = "Hello, world!" x = isspace(h)
This operator is not supported for use with structures. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.