Find common rows in 2 different arrays (faster than ismember)

1 view (last 30 days)
Hello everyone,
I am currently looking for a function that would return the index of identical row in 2 different array. I tried with
listIdx=ismember(conversion,x,"rows");
out=find(listIdx);
However it need a lot of time to get the result: ~0.7s 0.8s for 1 element when I can have more than 600 rows to compare.
I also trye ismembc function but it compare all the single elements of both array
Is there a faster way to that ?
Thank you in advance for your help
Mathieu
  6 Comments
Mathieu Chêne
Mathieu Chêne on 24 Apr 2023
Ok I did not know that.
However when I try to load the .dll file like this :
loadlibrary('IsMemberRows.dll')
I have the following error
Unrecognized function or variable 'IsMemberRows_proto'.
Maybe I am doing something wrong because I have all the downloaded files in the same folder
Stephen23
Stephen23 on 24 Apr 2023
Edited: Stephen23 on 24 Apr 2023
"Maybe I am doing something wrong because I have all the downloaded files in the same folder"
No, I don't think you are doing anything wrong: the chance that a DLL created 23 years ago will run on your computer is slim. Unless someone knows how to make it work, we should consider that FEX submission as abandoned.

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!