insertAfter
Insert string after specified substring
Description
inserts newStr
= insertAfter(str
,pat
,newText
)newText
into str
after the substring specified
by pat
and returns the result as newStr
. If
pat
occurs multiple times in str
, then
insertAfter
inserts newText
after every occurrence
of pat
.
inserts the text specified by newStr
= insertAfter(str
,pos
,newText
)newText
into str
after
the position specified by pos
.
Note
The operator insertafter
is supported only in Stateflow® charts that use MATLAB® as the action language.
Examples
Limitations
This operator does not support structures. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.