Navigation

Operators and Keywords

Function List:

C++ API

setdiff.m File Reference


Functions

 if (nargin==3) if(!strcmpi(byrows_arg
rows error ("expecting third argument to be \"rows\"")
endif endif if (byrows) if(nargout > 1)[c
endif if (!isempty(c)&&!isempty(b)) b
 c (idx(dups),:)
 if (nargout > 1) i(idx(dups)
 if (iscellstr(dummy)) dups
endif c (idx(dups))
endif if (size(c, 1)!=1 &&size(b, 1)==1) c
endif endif endif endfunction !assert (setdiff(["bb";"zz";"bb";"zz"],["bb";"cc";"bb"],"rows"),"zz")%!assert(setdiff(["b"
!assert (setdiff(["b";"z";"b";"z"],["b";"c";"b"]),"z")%!assert(setdiff([1
!assert (setdiff([1;2;3;4],[1;2;4],"rows"), 3)%!assert(setdiff([1
!assert (setdiff({"one","two";"three","four"},{"one","two";"three","six"}),{"four"})%!test%!a
 !assert (y,[5])
 !assert (y, a(i))

Variables

 function [c, i]
endif byrows = false
endif endif i = unique (a, "rows")
else c = unique (a, "rows")
 dups = sortrows ([c; b]) find (all (dummy(1:end-1,:) == dummy(2:end,:), 2))
 __pad12__
 z
 b = [1, 2, 3, 4]
 rows

Function Documentation

!assert ( ,
a(i)   
)

!assert (  ) 

z !assert ( setdiff({"one","two";"three","four"},{"one","two";"three","six"})   ) 

Type Constraints

z !assert ( setdiff([1;2;3;4],[1;2;4],"rows")  ,
 
)

Type Constraints

z !assert ( setdiff(["b";"z";"b";"z"],["b";"c";"b"])  ,
"z"   
)

Type Constraints

endif endif endif endfunction !assert ( setdiff(["bb";"zz";"bb";"zz"],["bb";"cc";"bb"],"rows")  ,
"zz"   
)

endif c ( idx(dups  ) 

c ( idx(dups ,
 
)

rows error ( "expecting third argument to be \"rows\""   ) 

endif if ( size(c, 1)!  = 1 &&size(b, 1)==1  ) 

if ( iscellstr(dummy)   ) 

if ( nargout  ,
 
)

endif if ( isemptyc)&&!isempty(b  ) 

endif endif if ( byrows   ) 

if ( nargin  = = 3  ) 


Variable Documentation

b = [1, 2, 3, 4]

elseif (iscell (a) || iscell (b)) warning ("setdiff else byrows = false

else c = unique (a, "rows")

else dups = sortrows ([c; b]) find (all (dummy(1:end-1,:) == dummy(2:end,:), 2))

function[c, i]

Initial value:

 setdiff (a, b, byrows_arg)

  if (nargin < 2 || nargin > 3)
    print_usage ()

endif endif else i = unique (a, "rows")

z rows

z