Functions | |
else | error ("xor: x and y must be of common size or scalars") |
endif else | print_usage () |
endif endfunction | !assert ((xor([1, 1, 0, 0],[0, 1, 0, 1])==[1, 0, 0, 1]%!&&xor([i, i, 0, 0],[1, 0, 1, 0])==[0, 1, 1, 0])) |
!assert (all(all(xor(eye(2), fliplr(eye(2)))==ones(2)))) | |
!error | xor () |
!error | xor (1, 2, 3) |
Variables | |
function | z |
endif endfunction !assert | ( | (xor([1, 1, 0, 0],[0, 1, 0, 1])==[1, 0, 0, 1]%!&&xor([i, i, 0, 0],[1, 0, 1, 0])==[0, 1, 1, 0]) | ) |
else error | ( | "xor: x and y must be of common size or scalars" | ) |
!error xor | ( | 1 | , | |
2 | , | |||
3 | ||||
) |
!error xor | ( | ) |
function z |