How can I delete vector from vector in matlab -
this question has answer here:
- exclude elements array [duplicate] 3 answers
how can delete vector vector? example:
a=[1,2,3,4,5]
how can delete b=[2,3,5]
above vector be
c=[1,4].
i have vector has 100 elements.
c = setdiff(a,b)
should trick.
Comments
Post a Comment