startsWith
checks if string starts with pattern.
📝 Syntax
tf = startsWith(str, pattern)
tf = startsWith(str, pattern,'IgnoreCase', true)
tf = startsWith(str, pattern,'IgnoreCase', false)
📥 Input argument
str - a string, string array or cell of strings.
pattern - a string to find.
📤 Output argument
tf - a matrix of logical.
📄 Description
startsWith returns true if str starts withpattern.
💡 Example
🔗 See also
🕔 History
Version
📄 Description
1.0.0
initial version
Last updated
Was this helpful?