<< strlength | String type | strncmpi >> |
res = strncmp(s1, s2, n) |
a string, string array or cell of strings.
a string, string array or cell of strings.
an integer value: numbers of characters to compare.
a logical: true if the two are identical and false otherwise.
strncmp('Nelson', 'nelSon', 3)
strncmp('Nelson', 'Nelson', 3)
A = {'Nel', 'son'; 'Toolboxes', 'Modules'}
B = {'Handle', 'Struct'; 'Toolboxes', 'Modules'}
C = {'C', 'Contents'; 'Nel', 'son'}
strncmp(A, B, 2)
strncmp(A, C, 2)
strncmp(C, 'C', 4)
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET