Azzera filtri
Azzera filtri

Delete array element values from another array element values

110 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 8 Set 2013
setdiff(Z,A)

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by