endsWith

checks if string ends with pattern.

📝 Syntax

  • tf = endsWith(str, pattern)

  • tf = endsWith(str, pattern,'IgnoreCase', true)

  • tf = endsWith(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

endsWith returns true if str ends withpattern.

💡 Example

🔗 See also

startsWith, contains.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?