Main Content

isspace

Determine which characters are space characters

Description

example

TF = isspace(A) returns a logical array TF. If A is a stringr, then the elements of TF are logical 1 (true) where corresponding characters in A are space characters, and logical 0 (false) elsewhere.

Note

The operator isspace is supported only in Stateflow® charts that use MATLAB® as the action language.

Examples

expand all

h = "Hello, world!"
x = isspace(h)

Stateflow chart that uses the isspace operator in a state.

Results from stateflow chart that uses the isspace operator in a state.

Limitations

Introduced in R2021b