erase
Delete substrings within strings
Description
newStr = erase(
deletes all occurrences of str
,match
)match
in str
and returns
the remaining text as newStr
.
Note
Only Stateflow® charts that use MATLAB® as the action language support the erase
operator.
Examples
Limitations
This operator does not support structures. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.