function y = peng_xor(x) if x(1) == 1 if x(2) == 1 y = 0; else y = 1; end elseif x(2) == 1 y = 1; else y = 0; end