eraseBetween
Syntax
Description
deletes the substring in newStr = eraseBetween(str,startStr,endStr)str between the substrings
startStr and endStr.
eraseBetween does not delete startStr and
endStr themselves.
deletes the substring in newStr = eraseBetween(str,startPos,endPos)str between the character positions
startPos and endPos, including the characters at
those positions.
includes or excludes the boundaries specified in the previous syntaxes from the substrings
that the operator deletes. Specify newStr = eraseBetween(___,Boundaries=bounds)bounds as
"inclusive" or "exclusive".
Note
The eraseBetween operator is not supported in Stateflow® charts that use C as the action language.
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



