Removing specific elements from array
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
ng jun Quan
el 28 de Abr. de 2019
Comentada: ng jun Quan
el 28 de Abr. de 2019
Lets assume i have
a = [1 1 3 5];
c = [1 5];
i want to remove c from a and the output should be a = [1 3]
a = setdiff(a,c) %this works but it removes both the '1' .
0 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Data Types 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!