strncmpi
Compares first n characters of strings (case sensitive).
Syntax
res = strncmpi(s1, s2, n)
Input argument
s1 - a string, string array or cell of strings.
s2 - a string, string array or cell of strings.
n - an integer value: numbers of characters to compare.
Output argument
res - a logical: true if the two are identical and false otherwise.
Description
strncmpi compares the first n characters of two strings (case insensitive).
Example
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated