Mercurial > hg > octave-nkf
comparison scripts/miscellaneous/xor.m @ 6046:34f96dd5441b
[project @ 2006-10-10 16:10:25 by jwe]
author | jwe |
---|---|
date | Tue, 10 Oct 2006 16:10:31 +0000 |
parents | 2a16423e4aa0 |
children | 045038e0108a |
comparison
equal
deleted
inserted
replaced
6045:421d8a903df7 | 6046:34f96dd5441b |
---|---|
36 z = logical ((x | y) - (x & y)); | 36 z = logical ((x | y) - (x & y)); |
37 else | 37 else |
38 error ("xor: x and y must be of common size or scalars"); | 38 error ("xor: x and y must be of common size or scalars"); |
39 endif | 39 endif |
40 else | 40 else |
41 usage ("xor (x, y)"); | 41 print_usage (); |
42 endif | 42 endif |
43 | 43 |
44 endfunction | 44 endfunction |