Removing specific elements from array
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
ng jun Quan
am 28 Apr. 2019
Kommentiert: ng jun Quan
am 28 Apr. 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 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Types finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!