Skip to content

strcmpi

Compare strings for equality (case-insensitive).

tf = strcmpi(str1, str2)

Like strcmp but case-insensitive: 'abc' and 'ABC' are considered equal.

strcmpi('abc', 'ABC') % 1
  • strcmp — Compare strings for equality (case-sensitive).
  • strncmp — Compare the first n characters of two strings (case-sensitive).
  • strncmpi — Compare the first n characters of two strings (case-insensitive).