Clear Filters
Clear Filters

Delete array element values from another array element values

110 views (last 30 days)
Hi Everyone,
Suppose I have the following
A = [1 2 3]
and
Z = [1 2 3 4 5 6]
how do I remove the values of A from Z, to get
Z = [4 5 6] in matlab
Regards,Chandradhar Savanth

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 8 Sep 2013
setdiff(Z,A)

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices 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!