Main Content
extractBefore
Description
returns the substring of newStr
= extractBefore(str
,subStr
)str
that ends before the first occurrence of
the substring subStr
.
returns the substring of newStr
= extractBefore(str
,pos
)str
that ends before the character position
pos
.
Note
The extractBefore
operator is not supported in Stateflow® charts that use C as the action language. For similar functionality, use
substr
.
Examples
Input Arguments
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