Boolean operation of A not B

3 views (last 30 days)
Alcide Bertocco
Alcide Bertocco on 10 Apr 2021
Commented: Alcide Bertocco on 10 Apr 2021
Hello guys,
I have 2 vectors "a" and "b" with b bigger than a. How can I create a new vector "c" with all the elements of b not in a.
Thank you in advance

Accepted Answer

Matt J
Matt J on 10 Apr 2021
c=setdiff(b,a)

More Answers (0)

Categories

Find more on Data Types in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!