matlab not equals operator
~
Use ~ to negate.
Note:
The ! operator means whatever follows will be passed to the operating
system (assuming it is the first part of the command, otherwise it is
an error.) This cannot be changed.
The ~ operator means logical negation, and the ~= operator means not equals.