# Julian way of MATLAB ismember function?

**URL:** <https://discourse.julialang.org/t/julian-way-of-matlab-ismember-function/3740>\
**Category:** General Usage\
**Created:** [May 16, 2017, 8:44am UTC](https://discourse.julialang.org/t/julian-way-of-matlab-ismember-function/3740 "2017-05-16T08:44:07Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![BeastyBlacksmith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/beastyblacksmith/32/4741_2.png) [@BeastyBlacksmith](https://discourse.julialang.org/u/BeastyBlacksmith)\
**Post date:** [June 20, 2019, 12:43pm UTC](https://discourse.julialang.org/t/julian-way-of-matlab-ismember-function/3740/16 "2019-06-20T12:43:52Z")

</div>

Thats correct, `occursin` is for checking whether one string occurs in another string, like `occursin("Hey", "HeyHo")`.  
If you want to check whether the strings in Array `A` are in Array `B`, you can still use `in.(A, Ref(B))`.  
Or if you want the index, `indexin(A,B)`.

---

_[View the full topic](https://discourse.julialang.org/t/julian-way-of-matlab-ismember-function/3740)._
