endsWith
Determine if strings end with pattern
Description
tf = endsWith(
returns str
,pat
)1
(true
) if str
ends with
the specified pattern, and returns 0
(false
)
otherwise.
tf = endsWith(
ignores case when determining if str
,pat
,IgnoreCase=true)str
ends with
pat
.
Note
Only Stateflow® charts that use MATLAB® as the action language support the startsWith
operator.
Examples
Limitations
This operator is not supported for use with structures. For more information about structures in Stateflow, see Access Bus Signals Through Stateflow Structures.