Skip to content

strcmpi

Comparing two character arrays in a case-insensitive manner

strcmp(s1, s2)

  • s1 and s2 should be arrays of characters.
  • s1 and s2 are compared case-insensitively.
  • It returns logical 1 if s1 and s2 have the same sizes and have the same elements, and returns logical 0 if otherwise.
  • It returns logical 0 if any of s1 and s2 is not a character array.