Find and replace one or more substring
newStr = replace(
replaces all occurrences of the substring
Only Stateflow® charts that use MATLAB® as the action language support the
h = "Hello, world!" old = "Hello" new = "Howdy" x = replace(h, old, new)
This operator does not support structures. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.