Main Content

isspace

Determine which characters are spaces in Stateflow chart

Since R2021b

Description

tf = isspace(str) returns a Boolean array based on whether each character of str is a space or not.

example

Note

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

Examples

expand all

Create a Boolean vector of the form [0 0 0 0 0 0 1 0 0 0 0 0 0].

str = "Hello, world!";
X = isspace(str);

Stateflow chart that uses the isspace operator in a state.

Input Arguments

expand all

Input string, specified as a string scalar. Enclose literal strings with double quotes.

Example: "Hello"

Limitations

  • This operator does not support the use of Stateflow structure fields or messages. For more information about structures in Stateflow, see Access Bus Signals.

Version History

Introduced in R2021b