Main Content
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
. Use this
operator in the Requirements
Table block.
inserts newStr
= insertBefore(str
,pos
,new
)new
into str
before the character position
pos
.
Examples
Input Arguments
Output Arguments
Limitations
This operator does not support the use of
Simulink.Bus
object fields.
Version History
Introduced in R2022b