strrep
Find and replace substrings
Description
newStr = strrep(
replaces all occurrences of str
,old
,new
)old
in str
with
new
.
Note
Only Stateflow® charts that use MATLAB® as the action language support the strrep
operator.
Examples
Limitations
This operator does not support structures. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.