setdiff — returns components of a vector which do not belong to another one
v=setdiff(a,b) [v,ka]=setdiff(a,b)
vector of real numbers or strings
vector of real numbers or strings
vector of real numbers or strings with same orientation than a
row vector of integers, ka(i) is the location of v(i) in a
setdiff(a,b)
returns a sorted vector which retains
the a
entries which are not in b
[v,ka]=setdiff(a,b)
returns a sorted vector which retains
the a
entries which are not in b
and the
location of these entries in a.