Main Content

isspace

Determine which characters are spaces in Requirements Table block

Since R2022b

Description

tf = isspace(str) returns a Boolean array based on whether each character of str is a space or not. Use this operator in the Requirements Table block.

example

Examples

expand all

In a Requirements Table block, create a requirement that outputs a logical array determined by the string "Hello, world!".

y = isspace("Hello, world!")

This image shows a requirement that outputs a logical array by using a string "Hello, world!".

Input Arguments

expand all

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

Example: "Hello"

Data Types: string

Output Arguments

expand all

Whether each character is a space, specified as a logical array. The elements in tf are logical 1 where the corresponding characters in str are spaces, and logical 0 where the characters are not spaces.

Limitations

  • This operator does not support the use of Simulink.Bus object fields.

Version History

Introduced in R2022b

See Also

|