>> diary off
>> A = [0 0 1 1]

A =

     0     0     1     1

>> B = [0 1 0 1]

B =

     0     1     0     1

>> E1 = (A | B) & ~B

E1 =

     0     0     1     0

>> E2 = (A & ~B)

E2 =

     0     0     1     0

>> E1 == E2

ans =

     1     1     1     1

>> diary off
