Borrar filtros
Borrar filtros

Delete array element values from another array element values

110 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 8 de Sept. de 2013
setdiff(Z,A)

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by