Borrar filtros
Borrar filtros

Whhat is the best way to remove repitions of two or three vectors?

1 visualización (últimos 30 días)
suppose I have a=[9 10 6 3 7],b=[1 9 6 7 8], I want to remove the repartitions so that:a=[9 10 6 3 7],b=[1 0 0 0 8]

Respuesta aceptada

Walter Roberson
Walter Roberson el 12 de Abr. de 2014
b(ismember(b,a)) = 0;

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by