check if the entries of an array exists in another array
238 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Deepa Maheshvare
am 30 Aug. 2020
Bearbeitet: KSSV
am 30 Aug. 2020
I've got two arrays,
a1 = ["a", "b", "c", "d", "e", "f"]
a2 = ["c", "f"]
I would like to check if a2 is present in a1. For a dingle entry, I could use find. I'm not sure how to check for all entries of "a2" at once
Any suggestion on how to check?
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical 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!