~strcmp( str1, str2 )
strcmp compares the two strings for equality. In your case the two strings are equal so you can't expect the function itself to return false so just negate its returned value.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!