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

1 Ansicht (letzte 30 Tage)
Mathieu Chêne
Mathieu Chêne am 24 Apr. 2023
Bearbeitet: Stephen23 am 24 Apr. 2023
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 Kommentare
Mathieu Chêne
Mathieu Chêne am 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 am 24 Apr. 2023
Bearbeitet: Stephen23 am 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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Produkte


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by