insertBefore
Description
inserts the string newStr = insertBefore(str,subStr,new)new into the string str before
the substring subStr. insertAfter inserts
new before every occurrence of subStr.
inserts newStr = insertBefore(str,pos,new)new into str before the character position
pos.
Note
The insertBefore 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

