Contents Previous Next Subchapters

Checking If Two Character Matrices are Equal (Mlmode)
Syntax strcmp(s1s2)
See Also stringequality , isequal

Description
Returns the logical scalar true, if s1 and s2 are both character matrices with equal dimension and equal elements. Returns false otherwise.

Example
If in Mlmode you enter
     s1 = 'hello';
     s2 = 'hello world';
     strcmp(s1, s2)
O-Matrix will reply
     F