% matlab
W=[1 1; 1 1]
c=[0;-1]
w=[1;-2]
b=0

X=[0 0; 0 1; 1 0; 1 1]
max(0, X*W+c')*w+b
