comparison scripts/set/setdiff.m @ 6046:34f96dd5441b

[project @ 2006-10-10 16:10:25 by jwe]
author jwe
date Tue, 10 Oct 2006 16:10:31 +0000
parents d542d9197839
children 7fad1fad19e1
comparison
equal deleted inserted replaced
6045:421d8a903df7 6046:34f96dd5441b
33 ## Adapted-by: jwe 33 ## Adapted-by: jwe
34 34
35 function c = setdiff (a, b, byrows) 35 function c = setdiff (a, b, byrows)
36 36
37 if (nargin < 2 || nargin > 3) 37 if (nargin < 2 || nargin > 3)
38 usage ("setdiff (a, b) or setdiff (a, b, \"rows\")"); 38 print_usage ();
39 endif 39 endif
40 40
41 if (nargin == 3) 41 if (nargin == 3)
42 if (! strcmpi (byrows, "rows")) 42 if (! strcmpi (byrows, "rows"))
43 error ("expecting third argument to be \"rows\""); 43 error ("expecting third argument to be \"rows\"");