Method on @sym: not (x)
Operator on @sym: ~x
Operator on @sym: !x

Logical "not" of a symbolic array.

Example:

syms x y
eqn = 2*x == y
  ⇒ eqn = (sym) 2⋅x = y
not(eqn)
  ⇒ ans = (sym) 2⋅x ≠ y

More briefly:

~(x==y)
  ⇒ ans = (sym) x ≠ y
!(x==y)
  ⇒ ans = (sym) x ≠ y

Applies to each entry of a matrix:

A = [x < y, 2*x + y >= 0, true]
  ⇒ A = (sym) [x < y  2⋅x + y ≥ 0  True]  (1×3 matrix)
~A
  ⇒ ans = (sym) [x ≥ y  2⋅x + y < 0  False]  (1×3 matrix)

See also: @sym/eq, @sym/ne, @sym/logical, @sym/isAlways.

Package: symbolic