How to eliminate the elements in an array from another array when there are repeated elements in both arrays?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
zhehao.nkd
am 26 Jun. 2022
Bearbeitet: Matt J
am 26 Jun. 2022
For example,
A = [ 1,2,2,2,3,4];
B = [1,2,2,3];
What I expect is A eliminate elements from B ( 2 with exact the same number of repeats) to get C = [2,4];
Thanks!
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays 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!